Human image shooting interface interaction method, device and electronic device

By displaying video streams and auxiliary lines on the character image shooting interface, local image interception and detection are performed, which solves the efficiency and accuracy problems caused by connection interruptions and light position changes, and achieves efficient image interaction and recognition processing.

CN117499778BActive Publication Date: 2024-09-17GUANGDONG SURING INTELLIGENT MEDICAL TECHNOLOGY CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202311429977.0
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-10-30
Publication Date
2024-09-17
Estimated Expiration
2043-10-30

AI Technical Summary

Technical Problem

In the human image shooting interface interaction, the efficiency is reduced due to connection interruption or busy server, and it is difficult to adjust the light or position changes of the image shooting end at all times, affecting the image quality and recognition accuracy.

Method used

By displaying the character preview video stream and image area auxiliary lines on the image shooting interface, it assists in determining the shooting location, intercepting and detecting images, and performs local area detection and recognition processing to avoid server-side connections and improve efficiency and accuracy.

Benefits of technology

It improves the efficiency of human image shooting interface interaction and the accuracy of recognition results, avoids delays caused by server connection interruptions and busyness, and enhances the accuracy of image collection.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN117499778B
    Figure CN117499778B
Patent Text Reader

Abstract

The embodiments of the present disclosure disclose a method, device and electronic device for interacting with a person image shooting interface. A specific implementation of the method includes: obtaining a preview video stream of a person shot by an image shooting terminal; displaying image area auxiliary lines in a video display area; in response to receiving a selection operation for an image area shooting control, performing image capture on the image in the video display area to obtain a person image after shooting; performing area detection on the person image after shooting to generate image detection information; in response to determining that the image detection information meets a preset image detection condition, displaying the person image after shooting in an image display area in an image shooting interface; in response to receiving a selection operation for an image recognition control in an image shooting interface, performing recognition processing on the person image after shooting in the image display area to obtain an image recognition result. This implementation can improve the efficiency of person image recognition.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] Embodiments of the present disclosure relate to the field of computer technology, and in particular to a method, device, and electronic device for interacting with a character image shooting interface. Background Art

[0002] The character image shooting interface is a technology used to display / operate remotely shot video images. At present, when interacting with the character image shooting interface, the commonly used method is: collect character images from the character image shooting interface, and then send the character images to the server for recognition processing. Finally, obtain the recognition processing results of the server.

[0003] However, the inventors have found that when the above method is used to interact with the character image shooting interface, the following technical problems often occur:

[0004] First, it is necessary to establish a connection between the character image shooting interface and the server. Therefore, if the connection is interrupted, some functions of the character image interface interaction will fail. In addition, if the server is accessed too frequently or is busy, it will be difficult to return the character image recognition processing results in time, thereby reducing the efficiency of the character image interface interaction.

[0005] Second, when using the character image shooting interface to capture character images, the light at the image shooting end or the changes in the character's position, as well as the difficulty in timely remote adjustment through the interactive interface, often have a significant impact on the captured image, thereby reducing the quality of images taken for different parts, and further reducing the accuracy of the character image recognition processing results.

[0006] The above information disclosed in this Background section is only for enhancement of understanding of the background of the inventive concept and therefore it may contain information that does not form the prior art that is already known in this country to a person of ordinary skill in the art. Summary of the invention

[0007] The content of this disclosure is used to introduce concepts in a brief form, which will be described in detail in the detailed implementation section below. The content of this disclosure is not intended to identify the key features or essential features of the technical solution claimed for protection, nor is it intended to limit the scope of the technical solution claimed for protection.

[0008] Some embodiments of the present disclosure propose a method, device and electronic device for interacting with a character image shooting interface to solve one or more of the technical problems mentioned in the above background technology section.

[0009] In a first aspect, some embodiments of the present disclosure provide a method for interacting with a character image shooting interface, the method comprising: obtaining a character preview video stream shot by an image shooting terminal, and displaying the character preview video stream in a video display area of ​​the image shooting interface; in response to receiving a selection operation for an image area control in the image shooting interface, displaying image area auxiliary lines in the above-mentioned video display area; in response to receiving a selection operation for an image area shooting control, performing image capture on the image in the above-mentioned video display area to obtain a character image after shooting; based on the selection operation for the above-mentioned image area control, performing area detection on the above-mentioned character image after shooting to generate image detection information; in response to determining that the above-mentioned image detection information meets a preset image detection condition, displaying the above-mentioned character image after shooting in the image display area of ​​the above-mentioned image shooting interface; in response to receiving a selection operation for an image recognition control in the image shooting interface, performing recognition processing on the character image after shooting in the image display area to obtain an image recognition result, and displaying the above-mentioned image recognition result in the result display area of ​​the above-mentioned image shooting interface.

[0010] In a second aspect, some embodiments of the present disclosure provide a person image shooting interface interaction device, the device comprising: an acquisition unit, configured to acquire a person preview video stream shot by an image shooting terminal, and display the person preview video stream in a video display area of ​​the image shooting interface; a display unit, configured to display image area auxiliary lines in the above-mentioned video display area in response to receiving a selection operation for an image area control in the image shooting interface; an image capture unit, configured to capture an image in the above-mentioned video display area in response to receiving a selection operation for an image area shooting control, to obtain a person image after shooting; a region detection unit, configured to perform region detection on the above-mentioned person image after shooting based on the selection operation of the above-mentioned image area control to generate image detection information; a display unit, configured to display the above-mentioned person image after shooting in the image display area in response to determining that the above-mentioned image detection information meets a preset image detection condition; a recognition processing and display unit, configured to perform recognition processing on the person image after shooting in the image display area in response to receiving a selection operation for an image recognition control in the image shooting interface to obtain an image recognition result, and display the above-mentioned image recognition result in the result display area of ​​the above-mentioned image shooting interface.

[0011] In a third aspect, some embodiments of the present disclosure provide an electronic device comprising: one or more processors; a storage device on which one or more programs are stored, and when the one or more programs are executed by the one or more processors, the one or more processors implement the method described in any implementation manner of the above-mentioned first aspect.

[0012] In a fourth aspect, some embodiments of the present disclosure provide a computer-readable medium having a computer program stored thereon, wherein when the program is executed by a processor, the method described in any implementation manner of the above-mentioned first aspect is implemented.

[0013] The above-mentioned embodiments of the present disclosure have the following beneficial effects: through the character image shooting interface interaction method of some embodiments of the present disclosure, the efficiency of the character image shooting interface interaction can be improved. Specifically, the reason for the reduced efficiency of the character image shooting interface interaction is that: it is necessary to establish a connection between the character image shooting interface and the server. Therefore, if the connection is interrupted, some functions of the character image interface interaction will fail. In addition, if the server accesses too frequently or the server is busy, it is difficult to return the recognition processing result of the character image in time. Based on this, the character image shooting interface interaction method of some embodiments of the present disclosure first obtains the character preview video stream shot by the image shooting terminal, and displays the character preview video stream in the video display area of ​​the image shooting interface. Then, in response to receiving a selection operation for the image area control in the image shooting interface, the image area auxiliary line is displayed in the above video display area. Here, by displaying the image area auxiliary line, it can be used to assist the character in determining the shooting position. This facilitates image shooting. Afterwards, in response to receiving a selection operation for the image area shooting control, the image in the above video display area is captured to obtain the character image after shooting. Then, based on the selection operation of the above-mentioned image area control, the above-mentioned image of the person after shooting is subjected to area detection to generate image detection information. Here, the person image can be directly detected by the local end through area detection. In this way, there is no need to connect to the server and use the server to perform person image recognition. Then, in response to determining that the above-mentioned image detection information meets the preset image detection conditions, the above-mentioned image of the person after shooting is displayed in the image display area in the above-mentioned image shooting interface. Finally, in response to receiving the selection operation for the image recognition control in the image shooting interface, the image of the person after shooting in the image display area is recognized and processed to obtain the image recognition result, and the above-mentioned image recognition result is displayed in the result display area of ​​the above-mentioned image shooting interface. Here, by displaying the image of the person after shooting and the image recognition result in the interface, the interaction of the person image shooting interface can be completed. Therefore, the above-mentioned implementation method does not need to be connected to the server, which can not only avoid the situation where the server connection is interrupted, but also improve the efficiency of person image recognition. BRIEF DESCRIPTION OF THE DRAWINGS

[0014] The above and other features, advantages and aspects of the embodiments of the present disclosure will become more apparent with reference to the following detailed description in conjunction with the accompanying drawings. Throughout the accompanying drawings, the same or similar reference numerals represent the same or similar elements. It should be understood that the drawings are schematic and that components and elements are not necessarily drawn to scale.

[0015] Figure 1 is a flow chart of some embodiments of the character image shooting interface interaction method according to the present disclosure;

[0016] Figure 2 It is a structural schematic diagram of some embodiments of the character image shooting interface interaction device according to the present disclosure;

[0017] Figure 3 It is a schematic diagram of the structure of an electronic device suitable for implementing some embodiments of the present disclosure. DETAILED DESCRIPTION

[0018] Embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. Although certain embodiments of the present disclosure are shown in the accompanying drawings, it should be understood that the present disclosure can be implemented in various forms and should not be construed as being limited to the embodiments set forth herein. On the contrary, these embodiments are provided to provide a more thorough and complete understanding of the present disclosure. It should be understood that the drawings and embodiments of the present disclosure are only for exemplary purposes and are not intended to limit the scope of protection of the present disclosure.

[0019] It should also be noted that, for ease of description, only the parts related to the invention are shown in the drawings. In the absence of conflict, the embodiments and features in the embodiments of the present disclosure can be combined with each other.

[0020] It should be noted that the concepts such as "first" and "second" mentioned in the present disclosure are only used to distinguish different devices, modules or units, and are not used to limit the order or interdependence of the functions performed by these devices, modules or units.

[0021] It should be noted that the modifications of "one" and "plurality" mentioned in the present disclosure are illustrative rather than restrictive, and those skilled in the art should understand that unless otherwise clearly indicated in the context, it should be understood as "one or more".

[0022] The names of the messages or information exchanged between multiple devices in the embodiments of the present disclosure are only used for illustrative purposes and are not used to limit the scope of these messages or information.

[0023] With regard to the collection, storage, and use of user personal information (such as personal images) involved in this disclosure, before performing the corresponding operations, the relevant organizations or individuals shall fulfill their obligations, including conducting personal information security impact assessments, fulfilling the obligation to inform the personal information subject, and obtaining the authorization and consent of the personal information subject in advance.

[0024] The present disclosure will be described in detail below with reference to the accompanying drawings and in conjunction with embodiments.

[0025] Figure 1The process 100 of some embodiments of the human image shooting interface interaction method according to the present disclosure is shown. The human image shooting interface interaction method comprises the following steps:

[0026] Step 101: obtaining a person preview video stream captured by an image capturing terminal, and displaying the person preview video stream in a video display area of ​​an image capturing interface.

[0027] In some embodiments, the execution subject of the character image shooting interface interaction method can obtain the character preview video stream shot by the image shooting terminal in a wired or wireless manner, and display the character preview video stream in the video display area of ​​the image shooting interface. Among them, the image shooting terminal can be a device for remote shooting. The above-mentioned image shooting interface can establish a unique communication connection with the above-mentioned device. The image shooting interface can be the interface currently being interacted. Secondly, the video display area can be a display area in the image shooting interface.

[0028] It should be noted that the above-mentioned wireless connection methods may include but are not limited to 3G / 4G connection, WiFi connection, Bluetooth connection, WiMAX connection, Zigbee connection, UWB (ultra wideband) connection, and other wireless connection methods currently known or to be developed in the future.

[0029] Step 102: In response to receiving a selection operation on an image area control in an image shooting interface, displaying image area auxiliary lines in a video display area.

[0030] In some embodiments, the execution subject may display image area auxiliary lines in the video display area in response to receiving a selection operation for an image area control in the image capture interface. The image area control may be a single-choice control for the interacting person to select. In practice, the image area control may also include a group of controls for selecting different image capture areas.

[0031] In some optional implementations of some embodiments, the image area control may include but is not limited to at least one of the following: a tongue surface image acquisition control, a tongue base image acquisition control, a facial image acquisition control, and an eye image acquisition control; and the execution subject, in response to receiving a selection operation for the image area control in the image shooting interface, displays the image area auxiliary lines in the video display area, which may include the following steps:

[0032] The first step is to obtain preset tongue surface image auxiliary lines in response to receiving a selection operation for the tongue surface image acquisition control in the image shooting interface, and to send corresponding tongue surface prompt voice information to the above-mentioned image shooting terminal. Among them, the tongue surface image acquisition control can be a control for selecting the shooting area as the tongue surface. The tongue surface image auxiliary lines can be pre-set auxiliary lines corresponding to the selection operation of the above-mentioned tongue surface image acquisition control. In practice, the tongue surface image auxiliary lines can include a preset face detection frame and a tongue detection frame. Here, the preset face detection frame can be a detection frame that fits the face. The tongue detection frame can be a circular, square or regional detection frame that fits the mouth shape (and includes the tongue area). Secondly, the above-mentioned tongue surface prompt voice information can be pre-set information bound to the selection operation of the tongue surface image acquisition control. For example, the tongue surface prompt voice information can be "Please align your mouth with the specified area of ​​the image."

[0033] In practice, the tongue base image acquisition control may be a control for selecting the tongue base as the shooting area. The face image acquisition control may be a control for selecting the face as the shooting area. The eye image acquisition control may be a control for selecting the eye as the shooting area.

[0034] The second step is to intercept the character image from the character preview video stream displayed in the video display area to obtain the intercepted character image. In particular, a frame of the character image can be intercepted from the character preview video stream as the intercepted character image.

[0035] The third step is to perform mouth area detection on the above-mentioned cropped character image to obtain a mouth area detection frame. The mouth area detection can be performed on the above-mentioned cropped character image by a preset mouth area detection algorithm to obtain a mouth area detection frame. Here, the mouth area detection algorithm can be used to detect a detection frame that is larger than the mouth area in the cropped character image area. Here, the obtained mouth area detection frame can be a rectangular detection frame, a circular detection frame, or a detection frame that fits the mouth shape.

[0036] As an example, the mouth area detection algorithm may include but is not limited to at least one of the following: MNS (Non-Maximum Suppression) algorithm, CNN (Convolutional Neural Networks) algorithm, etc.

[0037] The fourth step is to use the above-mentioned mouth area detection frame to correct the above-mentioned tongue surface image auxiliary line to obtain the corrected tongue surface image auxiliary line. Among them, the above-mentioned mouth area detection frame can be of the same type as the tongue detection frame included in the above-mentioned tongue surface image auxiliary line. Therefore, the tongue detection frame can be adjusted to a detection frame of the same size as the mouth area detection frame. Here, through correction, the corrected tongue surface image auxiliary line can be made more suitable for the displayed character image.

[0038] The fifth step is to display the above-mentioned corrected tongue surface image auxiliary lines as image area auxiliary lines in the above-mentioned video display area, and send the above-mentioned corrected tongue surface image auxiliary lines to the above-mentioned image shooting terminal, so that the above-mentioned image shooting terminal can focus on the image area corresponding to the above-mentioned corrected tongue surface image auxiliary lines. Among them, by displaying the image area auxiliary lines in the video display area, it can be used to provide reference lines for operators interacting with the interface. At the same time, by sending the corrected tongue surface image auxiliary lines to the above-mentioned image shooting terminal, it can be used to synchronously display the shooting auxiliary lines on the shooting interface of the image shooting terminal, so that the user can adjust the position of the character according to the auxiliary lines. And it can be convenient for the image shooting terminal to focus on the image area corresponding to the above-mentioned corrected tongue surface image auxiliary lines. In practice, by focusing on the area to be shot, the clarity of the image in the area can be improved. Thereby, it is convenient for subsequent recognition processing.

[0039] Optionally, if the image capturing terminal does not include a display device, a voice prompt may be issued by following the steps below:

[0040] The first step is to perform frame extraction detection on the preview video stream of the character displayed in the video display area to obtain the center coordinate vector of the character's tongue. Among them, the frame extraction detection can be to extract a frame of image for detection at a preset number of frame intervals. Secondly, the preset character position detection method can be used to perform detection to obtain the center coordinate vector of the character's tongue. Here, the center coordinate vector of the character's tongue can be used to characterize the movement direction of the center coordinate of the tongue relative to the center coordinate of the above-mentioned corrected tongue surface image auxiliary line.

[0041] As an example, the above-mentioned preset person position detection method may include but is not limited to at least one of the following: background subtraction method, inter-frame difference method, optical flow method, etc.

[0042] The second step is to determine the voice prompt information corresponding to the above-mentioned character's tongue center coordinate vector in response to determining that the above-mentioned character's tongue center coordinate vector satisfies the preset vector condition. Among them, the above-mentioned preset vector condition can be: the distance value between the first coordinate of the character's tongue center coordinate vector and the center coordinate is greater than the preset distance threshold, or the length of the character's tongue center coordinate vector is greater than the preset length threshold. Secondly, if the above-mentioned character's tongue center coordinate vector satisfies the preset vector condition, the preset prompt information that matches the above-mentioned character's tongue center coordinate vector is determined as the voice prompt information corresponding to the above-mentioned character's tongue center coordinate vector. Here, matching can mean that the direction of the character's tongue center coordinate vector is opposite to the direction corresponding to the voice prompt information.

[0043] As an example, if the coordinate vector of the center of the tongue of the character meets the preset vector condition and is a vector moving to the left, the matched preset prompt information may be the information of "please turn your head to the right".

[0044] The third step is to send the voice prompt information to the image shooting terminal to broadcast the voice prompt information.

[0045] Optionally, the image capture interface may further include an image area auxiliary line switch control and a voice sending control, which may be used to display or turn off the image area auxiliary lines. If the image area auxiliary line switch control is in the off state, a long press operation on the voice sending control is received, and the voice input by the sender may be recorded. Upon receiving a long press cancel operation on the voice sending control, the recorded voice may be sent to the above-mentioned image capture terminal for voice broadcast.

[0046] Optionally, if a selection operation for a tongue base image acquisition control, a facial image acquisition control, or an eye image acquisition control is received, the above steps may also be followed. Differently, the selection operation for the tongue base image acquisition control, the facial image acquisition control, or the eye image acquisition control may correspond to different preset auxiliary lines and detection algorithms. For example, the selection operation for the facial image acquisition control may correspond to triggering a preset facial image detection algorithm. The selection operation for the eye image acquisition control may correspond to triggering a preset eye image detection algorithm.

[0047] Step 103, in response to receiving a selection operation for the image area shooting control, the image in the video display area is captured to obtain a captured character image.

[0048] In some embodiments, the execution subject may, in response to receiving a selection operation on an image area shooting control, capture the image in the video display area to obtain a captured character image.

[0049] In some optional implementations of some embodiments, the execution subject, in response to receiving a selection operation for an image area shooting control, captures the image in the video display area to obtain a captured character image, which may include the following steps:

[0050] In the first step, in response to receiving a selection operation for an image area shooting control, a target number of frames of character images are intercepted from the video display area to obtain a character image sequence. The image area shooting control may be a control set on the image shooting interface for intercepting images in the video display area. For example, the target number of frames may be 5 frames.

[0051] In the second step, image definition detection is performed on each character image in the character image sequence to generate an image definition sequence. The image definition detection can be performed on each character image in the character image sequence using a preset image definition detection algorithm to generate an image definition sequence. Each image definition can correspond to a character image.

[0052] As an example, the above-mentioned image clarity detection algorithm may include but is not limited to at least one of the following: an edge detection algorithm, a Fourier transform algorithm, a gradient algorithm, and the like.

[0053] In the third step, a character image with the highest image definition in the character image sequence is determined as the captured character image.

[0054] Step 104, based on the selection operation of the image area control, performing area detection on the captured person image to generate image detection information.

[0055] In some embodiments, the execution subject may perform region detection on the captured person image based on the selection operation of the image region control to generate image detection information.

[0056] In some optional implementations of some embodiments, the execution subject performs area detection on the captured person image based on the selection operation of the image area control to generate image detection information, which may include the following steps:

[0057] The first step is to obtain a preset coordinate distance ratio set in response to receiving a selection operation for a tongue surface image acquisition control in an image shooting interface. The preset coordinate distance ratio in the preset coordinate distance ratio set may be a ratio of distances between preset tongue surface key point coordinates. Each preset coordinate distance ratio may correspond to at least three preset tongue surface key point coordinates.

[0058] As an example, if the preset tongue surface key point coordinates include preset tongue tip position coordinates, preset tongue root position coordinates, and preset mouth corner position coordinates, then the distance value between each two coordinates can be determined, and the ratio between each two distance values ​​can be determined as the preset coordinate distance ratio.

[0059] The second step is to perform tongue surface area detection on the above-mentioned captured character image to generate a tongue surface area key point coordinate group. Among them, the tongue surface area key point coordinates in the above-mentioned tongue surface area key point coordinate group are but not limited to at least one of the following: tongue tip coordinates, tongue surface center point coordinates, upper lip center point coordinates, left mouth corner coordinates, right mouth corner coordinates, tongue surface left side coordinates or tongue surface right side coordinates, etc. Secondly, the tongue surface area detection can be performed on the above-mentioned captured character image through a preset tongue surface area detection algorithm to generate a tongue surface area key point coordinate group.

[0060] As an example, the tongue surface area detection algorithm can be but is not limited to at least one of the following: FAST corner detection, BRIEF (Binary Robust Independent Elementary Features), SIFT (Scale-invariant Feature Transform) algorithm, Surf (Speeded UpRobust Features) algorithm, etc.

[0061] The third step is to determine the distance values ​​between the tongue surface area key point coordinates in the tongue surface area key coordinate group to obtain a distance value set, wherein each distance value may correspond to the identifiers of two tongue surface area key point coordinates.

[0062] The fourth step is to determine the ratio of each distance value in the above distance value set to obtain a distance ratio set. Each distance ratio may correspond to the identifiers of two distance values. Here, the tongue surface area key point coordinates corresponding to each distance ratio and the preset tongue surface key point coordinates corresponding to the preset coordinate distance ratio are the same in number, and each tongue surface area key point coordinate and the preset tongue surface key point coordinate are coordinates representing the same position of the tongue surface area.

[0063] In the fifth step, in response to determining that the above-mentioned distance ratio set and the above-mentioned preset coordinate distance ratio set meet the preset ratio condition, the information indicating that the image detection has passed is determined as the image detection information. The preset ratio condition may be that the difference between at least two sets of distance ratios and the corresponding preset coordinate distance ratios is greater than a preset difference threshold. The above-mentioned distance ratio set and the above-mentioned preset coordinate distance ratio set meet the preset ratio condition, which can be used to indicate that the above-mentioned post-shooting person image detection has passed. Therefore, the information indicating that the image detection has passed can be determined as the image detection information.

[0064] In addition, if the detection fails, a prompt indicating that the image needs to be re-photographed may be issued at any position in the above-mentioned image shooting interface.

[0065] In practice, considering that the key points of different faces are detected at different locations, a preset ratio condition is set to filter out the captured images of people that fail the detection.

[0066] Step 105 , in response to determining that the image detection information satisfies a preset image detection condition, the captured person image is displayed in an image display area in the image capture interface.

[0067] In some embodiments, the execution subject may display the captured person image in the image display area of ​​the image capture interface in response to determining that the image detection information satisfies a preset image detection condition. The image detection condition may be that the image detection information is information indicating that the image detection has passed.

[0068] In some optional implementations of some embodiments, the execution subject, in response to determining that the image detection information satisfies a preset image detection condition, displays the captured person image in an image display area in the image capture interface, which may include the following steps:

[0069] The first step is to create a tongue surface image display area in the above-mentioned image shooting interface. Among them, the displayed image area frame can be obtained. Then, the displayed image area frame is adjusted to establish an image display area. Here, the adjusted image area frame and the created image display area can be in the preset total display area and have the same size.

[0070] The second step is to bind the image connection of the above-mentioned photographed person image to the above-mentioned tongue surface image display area, so as to display the above-mentioned tongue surface image in the above-mentioned tongue surface image display area. Among them, the image connection can be a connection address of the person image after shooting. The connection address can be input into the tongue surface image display area for binding.

[0071] Step 106, in response to receiving a selection operation for the image recognition control in the image shooting interface, performing recognition processing on the captured person image in the image display area to obtain an image recognition result, and displaying the image recognition result in the result display area of ​​the image shooting interface.

[0072] In some embodiments, the execution subject may, in response to receiving a selection operation for an image recognition control in an image shooting interface, perform recognition processing on the captured person image in the image display area to obtain an image recognition result, and display the image recognition result in the result display area of ​​the image shooting interface. Among them, the image recognition control may be a control for triggering image recognition. Here, the image recognition control may correspond to the selected image area control. If the selected image area control is a tongue surface image acquisition control, the image recognition control may trigger an algorithm for tongue surface image recognition. In addition, the image recognition result may be a result that characterizes image recognition features, including detected features. The keywords corresponding to the image recognition results may be displayed in the result display area in a preset arrangement order.

[0073] As an example, for a tongue image, the image recognition result may include the following feature keywords: "red tongue", "thick tongue coating", "cracked tongue coating", "tongue ulcer", etc. For a face image, the image recognition result may include the following feature keywords: "pale face", "spots", "darkness", "acne", etc.

[0074] In some optional implementations of some embodiments, the execution subject performs recognition processing on the captured person image in the image display area to obtain the image recognition result, which may include the following steps:

[0075] The first step is, in response to determining that the above-mentioned captured character image is a tongue surface image, performing tongue coating detection on the above-mentioned tongue surface image to obtain a tongue coating feature map. Among them, the tongue coating detection can be performed on the above-mentioned tongue surface image by a preset tongue coating detection algorithm to obtain a tongue coating feature map. Here, the tongue coating detection algorithm can be used to detect the texture characteristics of the tongue coating. Therefore, the tongue coating feature map can be a texture feature map of the tongue coating.

[0076] As an example, the tongue coating detection algorithm may include but is not limited to at least one of the following: GLCM (Gray Level Co-occurrence Matrix) detection algorithm, Tamura texture analysis method, GWBTF (Gaborwavelet-based texture feature extraction) algorithm.

[0077] The second step is to perform tongue surface feature detection on the tongue surface image to obtain tongue surface detection features. The tongue surface feature detection can be performed on the tongue surface image using a preset tongue surface feature detection algorithm to obtain tongue surface detection features. Here, the tongue surface detection algorithm can be used to extract features such as the color and protrusions of the tongue surface.

[0078] As an example, the tongue surface feature detection algorithm may include but is not limited to at least one of the following: a DWT (Discrete Wavelet Transform) algorithm, a fast Fourier transform algorithm, and a continuous wavelet transform algorithm.

[0079] The third step is to input the above-mentioned tongue coating feature map and the above-mentioned tongue surface detection features into the preset tongue surface feature recognition model to generate an image recognition result. Among them, the above-mentioned tongue surface feature recognition model can be deployed on the local client of the image shooting interface. Secondly, the above-mentioned tongue coating feature map and the above-mentioned tongue surface detection features can be identified by the preset tongue surface feature recognition model to obtain the image recognition result. In practice, the algorithms for image recognition are all algorithms pre-deployed on the local client of the shooting interface. In this way, there is no need to connect to the server.

[0080] As an example, the above-mentioned tongue surface feature recognition model may include but is not limited to at least one of the following: a naive Bayes algorithm, a VGG (Visual Geometry Group Network, convolutional neural network) model, and a GoogLeNet (deep neural network) model, etc.

[0081] Optionally, the above execution entity may further perform the following steps:

[0082] In response to the image detection information not satisfying the image detection conditions, an image failure prompt is displayed on the image capture interface, and the image area auxiliary lines are displayed again in the video display area. The fact that the image detection information does not satisfy the image detection conditions can indicate that the image of the person after the capture does not meet the recognition requirements. Therefore, a prompt message indicating "image failure" can be displayed on the image capture interface. In addition, the image area auxiliary lines can be displayed again in the video display area to serve as a reference for adjusting the position of the person.

[0083] Optionally, the above execution entity may further perform the following steps:

[0084] In response to receiving a brightness adjustment operation for a brightness control in an image capture interface, a brightness value corresponding to the brightness adjustment operation is sent to the image capture terminal, so that the image capture terminal can synchronously adjust the brightness of the fill light. The brightness control can be a brightness control bar control, and the brightness control can include a brightness control slider. After receiving a drag operation for the brightness control slider, the brightness value corresponding to the operation can be sent to the image capture terminal, so that the image capture terminal can synchronously adjust the brightness of the fill light.

[0085] The above steps and their related contents, as an inventive point of the embodiment of the present disclosure, solve the second technical problem mentioned in the background technology: "When using the character image shooting interface to collect character images, the light at the image shooting end or the position of the character is often affected by the change, and it is difficult to adjust remotely through the interactive interface in time, resulting in a greater impact on the captured image, thereby reducing the quality of the images captured for different parts, and further reducing the accuracy of the recognition processing results of the character images." The factors that lead to the reduction of the accuracy of the recognition processing results of the character images are often as follows: When using the character image shooting interface to collect character images, the light at the image shooting end or the position of the character is often affected by the change, and it is difficult to adjust remotely through the interactive interface in time, resulting in a greater impact on the captured image, thereby reducing the quality of the images captured for different parts. If the above factors are solved, the accuracy of the recognition processing results of the character images can be improved. In order to achieve this effect, first, by setting an image area control including multiple controls (i.e., tongue surface image acquisition control, tongue base image acquisition control, facial image acquisition control, eye image acquisition control, etc.) in the image shooting interface, it is convenient for operators to select. At the same time, for the acquisition controls of different parts of the person, the corresponding tongue surface image auxiliary lines and recognition algorithms are pre-set. By obtaining the preset tongue surface image auxiliary lines, they can be used as reference auxiliary lines. Then, through correction, one can avoid the inaccurate position obtained by direct detection, and the other can avoid the unreasonable detection results. Therefore, it can also avoid the situation where the position of the person image is difficult to align in time. Then, because the corrected tongue surface image auxiliary lines are introduced. It can be used to synchronize the focus area of ​​the camera of the image shooting terminal, so as to improve the image clarity of the area to be shot. Thereby, it can assist in quickly adjusting the position of the person and the light of the shooting area, improving the efficiency of image acquisition and the accuracy of image acquisition. Afterwards, considering the situation that there are errors such as angle and size in the acquisition of the tongue surface area, not only by setting the preset coordinate distance ratio set, but also by performing the tongue surface area detection to obtain the tongue surface area key point coordinate group. This can be used to determine the distance value between the coordinates of each tongue surface area key point in the tongue surface area key coordinate group. Therefore, by comparing the distance ratio set with the preset coordinate distance ratio set, it can be quickly determined whether the image meets the requirements. Then, for the detection and recognition of the tongue surface image, the features of the tongue surface image are first extracted through tongue coating detection and tongue surface feature detection. Then, tongue surface feature recognition is performed based on the features through tongue surface feature detection. Thus, the tongue surface image detection can be performed from multiple angles, thereby improving the accuracy of the tongue surface image detection results.

[0086] The above-mentioned embodiments of the present disclosure have the following beneficial effects: through the character image shooting interface interaction method of some embodiments of the present disclosure, the efficiency of the character image shooting interface interaction can be improved. Specifically, the reason for the reduced efficiency of the character image shooting interface interaction is that: it is necessary to establish a connection between the character image shooting interface and the server. Therefore, if the connection is interrupted, some functions of the character image interface interaction will fail. In addition, if the server accesses too frequently or the server is busy, it is difficult to return the recognition processing result of the character image in time. Based on this, the character image shooting interface interaction method of some embodiments of the present disclosure first obtains the character preview video stream shot by the image shooting terminal, and displays the character preview video stream in the video display area of ​​the image shooting interface. Then, in response to receiving a selection operation for the image area control in the image shooting interface, the image area auxiliary line is displayed in the above video display area. Here, by displaying the image area auxiliary line, it can be used to assist the character in determining the shooting position. This facilitates image shooting. Afterwards, in response to receiving a selection operation for the image area shooting control, the image in the above video display area is captured to obtain the character image after shooting. Then, based on the selection operation of the above-mentioned image area control, the above-mentioned image of the person after shooting is subjected to area detection to generate image detection information. Here, the person image can be directly detected by the local end through area detection. In this way, there is no need to connect to the server and use the server to perform person image recognition. Then, in response to determining that the above-mentioned image detection information meets the preset image detection conditions, the above-mentioned image of the person after shooting is displayed in the image display area in the above-mentioned image shooting interface. Finally, in response to receiving the selection operation for the image recognition control in the image shooting interface, the image of the person after shooting in the image display area is recognized and processed to obtain the image recognition result, and the above-mentioned image recognition result is displayed in the result display area of ​​the above-mentioned image shooting interface. Here, by displaying the image of the person after shooting and the image recognition result in the interface, the interaction of the person image shooting interface can be completed. Therefore, the above-mentioned implementation method does not need to be connected to the server, which can not only avoid the situation where the server connection is interrupted, but also improve the efficiency of person image recognition.

[0087] Further references Figure 2 As an implementation of the methods shown in the above figures, the present disclosure provides some embodiments of a device for interacting with a character image shooting interface. Figure 1 Corresponding to the method embodiments shown, the character image shooting interface interaction device can be specifically applied to various electronic devices.

[0088] like Figure 2As shown, the character image shooting interface interaction device 200 of some embodiments includes: an acquisition unit 201, a display unit 202, an image capture unit 203, a region detection unit 204, a display unit 205 and a recognition processing and display unit 206. Among them, the acquisition unit 201 is configured to acquire a preview video stream of a person shot by an image shooting terminal, and to display the preview video stream of the person in a video display area of ​​an image shooting interface; the display unit 202 is configured to display image area auxiliary lines in the above-mentioned video display area in response to receiving a selection operation for an image area control in the image shooting interface; the image capture unit 203 is configured to capture the image in the above-mentioned video display area in response to receiving a selection operation for an image area shooting control, and obtain a person image after shooting; the area detection unit 204 is configured to perform area detection on the above-mentioned person image after shooting based on the selection operation of the above-mentioned image area control to generate image detection information; the display unit 205 is configured to display the above-mentioned person image after shooting in the image display area in the above-mentioned image shooting interface in response to determining that the above-mentioned image detection information meets a preset image detection condition; the recognition processing and display unit 206 is configured to perform recognition processing on the person image after shooting in the image display area in response to receiving a selection operation for an image recognition control in the image shooting interface to obtain an image recognition result, and display the above-mentioned image recognition result in the result display area of ​​the above-mentioned image shooting interface.

[0089] It is understood that the units described in the device 200 are similar to those described in the reference Figure 1 Therefore, the operations, features and beneficial effects described above for the method are also applicable to the device 200 and the units included therein, and will not be described in detail here.

[0090] Reference below Figure 3 , which shows a structural schematic diagram of an electronic device 300 suitable for implementing some embodiments of the present disclosure. Figure 3 The electronic device shown is only an example and should not bring any limitation to the functions and scope of use of the embodiments of the present disclosure.

[0091] like Figure 3As shown, the electronic device 300 may include a processing device 301 (e.g., a central processing unit, a graphics processing unit, etc.), which can perform various appropriate actions and processes according to a program stored in a read-only memory (ROM) 302 or a program loaded from a storage device 308 into a random access memory (RAM) 303. In the RAM 303, various programs and data required for the operation of the electronic device 300 are also stored. The processing device 301, the ROM 302, and the RAM 303 are connected to each other via a bus 304. An input / output (I / O) interface 305 is also connected to the bus 304.

[0092] Typically, the following devices may be connected to the I / O interface 305: input devices 306 including, for example, a touch screen, a touch pad, a keyboard, a mouse, a camera, a microphone, an accelerometer, a gyroscope, etc.; output devices 307 including, for example, a liquid crystal display (LCD), a speaker, a vibrator, etc.; storage devices 308 including, for example, a magnetic tape, a hard disk, etc.; and communication devices 309. The communication devices 309 may allow the electronic device 300 to communicate with other devices wirelessly or by wire to exchange data. Although Figure 3 The electronic device 300 is shown with various devices, but it should be understood that it is not required to implement or possess all the devices shown. More or fewer devices may be implemented or possessed instead. Figure 3 Each block shown in the figure may represent one device, or may represent multiple devices as required.

[0093] In particular, according to some embodiments of the present disclosure, the process described above with reference to the flowchart can be implemented as a computer software program. For example, some embodiments of the present disclosure include a computer program product, which includes a computer program carried on a computer-readable medium, and the computer program includes a program code for executing the method shown in the flowchart. In some such embodiments, the computer program can be downloaded and installed from the network through the communication device 309, or installed from the storage device 308, or installed from the ROM 302. When the computer program is executed by the processing device 301, the above-mentioned functions defined in the method of some embodiments of the present disclosure are executed.

[0094] It should be noted that the computer-readable medium in some embodiments of the present disclosure may be a computer-readable signal medium or a computer-readable storage medium or any combination of the two. The computer-readable storage medium may be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device or device, or any combination of the above. More specific examples of computer-readable storage media may include, but are not limited to: an electrical connection with one or more wires, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above. In some embodiments of the present disclosure, the computer-readable storage medium may be any tangible medium containing or storing a program that can be used by or in combination with an instruction execution system, device or device. In some embodiments of the present disclosure, the computer-readable signal medium may include a data signal propagated in a baseband or as part of a carrier wave, in which a computer-readable program code is carried. This propagated data signal may take a variety of forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination of the above. The computer readable signal medium may also be any computer readable medium other than a computer readable storage medium, which may send, propagate or transmit a program for use by or in conjunction with an instruction execution system, apparatus or device. The program code contained on the computer readable medium may be transmitted using any suitable medium, including but not limited to: wires, optical cables, RF (radio frequency), etc., or any suitable combination of the above.

[0095] In some embodiments, the client and the server may communicate using any currently known or future developed network protocol such as HTTP (Hyper Text Transfer Protocol), and may be interconnected with any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include a local area network ("LAN"), a wide area network ("WAN"), an internet (e.g., the Internet), and a peer-to-peer network (e.g., an ad hoc peer-to-peer network), as well as any currently known or future developed network.

[0096] The computer-readable medium may be included in the device; or it may exist independently without being assembled into the electronic device. The computer-readable medium carries one or more programs. When the one or more programs are executed by the electronic device, the electronic device: obtains the preview video stream of the person shot by the image shooting terminal, and displays the preview video stream of the person in the video display area of ​​the image shooting interface; in response to receiving a selection operation for the image area control in the image shooting interface, displays the image area auxiliary line in the video display area; in response to receiving a selection operation for the image area shooting control, performs image interception on the image in the video display area to obtain the image of the person after shooting; based on the selection operation of the image area control, performs area detection on the image of the person after shooting to generate image detection information; in response to determining that the image detection information meets the preset image detection condition, displays the image of the person after shooting in the image display area of ​​the image shooting interface; in response to receiving a selection operation for the image recognition control in the image shooting interface, performs recognition processing on the image of the person after shooting in the image display area to obtain the image recognition result, and displays the image recognition result in the result display area of ​​the image shooting interface.

[0097] Computer program code for performing the operations of some embodiments of the present disclosure may be written in one or more programming languages ​​or a combination thereof, including object-oriented programming languages ​​such as Java, Smalltalk, C++, and conventional procedural programming languages ​​such as "C" or similar programming languages. The program code may be executed entirely on the user's computer, partially on the user's computer, as a separate software package, partially on the user's computer and partially on a remote computer, or entirely on a remote computer or server. In cases involving a remote computer, the remote computer may be connected to the user's computer via any type of network, including a local area network (LAN) or a wide area network (WAN), or may be connected to an external computer (e.g., via the Internet using an Internet service provider).

[0098] The flow chart and block diagram in the accompanying drawings illustrate the possible architecture, function and operation of the system, method and computer program product according to various embodiments of the present disclosure. In this regard, each square box in the flow chart or block diagram can represent a module, a program segment or a part of a code, and the module, the program segment or a part of the code contains one or more executable instructions for realizing the specified logical function. It should also be noted that in some implementations as replacements, the functions marked in the square box can also occur in a sequence different from that marked in the accompanying drawings. For example, two square boxes represented in succession can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each square box in the block diagram and / or flow chart, and the combination of the square boxes in the block diagram and / or flow chart can be implemented with a dedicated hardware-based system that performs a specified function or operation, or can be implemented with a combination of dedicated hardware and computer instructions.

[0099] The units described in some embodiments of the present disclosure may be implemented by software or by hardware. The described units may also be set in a processor, for example, it may be described as: a processor includes: an acquisition unit, a display unit, an image capture unit, a region detection unit, a display unit, and a recognition processing and display unit. Among them, the names of these units do not constitute a limitation on the unit itself in some cases. For example, the acquisition unit may also be described as "a unit for acquiring a preview video stream of a person captured by an image capture terminal."

[0100] The functions described above herein may be performed at least in part by one or more hardware logic components. For example, without limitation, exemplary types of hardware logic components that may be used include: field programmable gate arrays (FPGAs), application specific integrated circuits (ASICs), application specific standard products (ASSPs), systems on chips (SOCs), complex programmable logic devices (CPLDs), and the like.

[0101] The above descriptions are only some preferred embodiments of the present disclosure and an explanation of the technical principles used. Those skilled in the art should understand that the scope of the invention involved in the embodiments of the present disclosure is not limited to the technical solutions formed by a specific combination of the above-mentioned technical features, but should also cover other technical solutions formed by any combination of the above-mentioned technical features or their equivalent features without departing from the above-mentioned inventive concept. For example, the above-mentioned features are replaced with the technical features with similar functions disclosed in the embodiments of the present disclosure (but not limited to) and the technical solutions formed.

Claims

1. A method for interacting with a character image shooting interface, comprising: Obtaining a preview video stream of a person shot by an image shooting terminal, and displaying the preview video stream of the person in a video display area of ​​an image shooting interface; In response to receiving a selection operation on an image area control in the image shooting interface, displaying image area auxiliary lines in the video display area; In response to receiving a selection operation for an image area shooting control, capturing an image in the video display area to obtain a captured person image; Based on the selection operation of the image area control, performing area detection on the captured person image to generate image detection information; In response to determining that the image detection information satisfies a preset image detection condition, displaying the captured person image in an image display area in the image capture interface; In response to receiving a selection operation for an image recognition control in an image shooting interface, performing recognition processing on the captured person image in the image display area to obtain an image recognition result, and displaying the image recognition result in the result display area of ​​the image shooting interface; The image area control includes at least one of the following: a tongue surface image acquisition control, a tongue base image acquisition control, a facial image acquisition control, and an eye image acquisition control; and In response to receiving a selection operation on an image area control in an image shooting interface, displaying image area auxiliary lines in the video display area includes: In response to receiving a selection operation on a tongue surface image acquisition control in an image shooting interface, obtaining a preset tongue surface image auxiliary line, and sending a corresponding tongue surface prompt voice message to the image shooting terminal; Capturing a character image from a preview video stream of a character displayed in the video display area to obtain a captured character image; Performing mouth region detection on the captured person image to obtain a mouth region detection frame; Using the mouth area detection frame, the tongue surface image auxiliary line is corrected to obtain a corrected tongue surface image auxiliary line; Displaying the corrected tongue surface image auxiliary line as an image area auxiliary line in the video display area, and sending the corrected tongue surface image auxiliary line to the image shooting terminal so that the image shooting terminal can focus on the image area corresponding to the corrected tongue surface image auxiliary line; The performing of region detection on the captured person image based on the selection operation of the image region control to generate image detection information includes: In response to receiving a selection operation on a tongue surface image acquisition control in an image shooting interface, acquiring a preset coordinate distance ratio set; Performing tongue surface area detection on the photographed person image to generate a tongue surface area key point coordinate group, wherein the tongue surface area key point coordinates in the tongue surface area key point coordinate group are at least one of the following: tongue tip coordinates, tongue surface center point coordinates, upper lip center point coordinates, left mouth corner coordinates, right mouth corner coordinates, tongue surface left side coordinates or tongue surface right side coordinates; Determine the distance value between the coordinates of each tongue surface area key point in the tongue surface area key coordinate group to obtain a distance value set; Determine the ratio of each distance value in the distance value set to obtain a distance ratio value set; In response to determining that the distance ratio set and the preset coordinate distance ratio set satisfy a preset ratio condition, information characterizing that the image detection has passed is determined as image detection information.

2. The method according to claim 1, wherein: In response to receiving a selection operation for an image area shooting control, capturing an image in the video display area to obtain a captured person image includes: In response to receiving a selection operation for an image area shooting control, extracting a target number of frames of character images from the video display area to obtain a character image sequence; Performing image definition detection on each person image in the person image sequence to generate an image definition sequence; A character image with the highest image definition in the character image sequence is determined as the captured character image.

3. The method according to claim 1, wherein: In response to determining that the image detection information satisfies a preset image detection condition, displaying the captured person image in an image display area in the image capture interface includes: Creating a tongue surface image display area in the image shooting interface; The image connection of the photographed person image is bound to the tongue surface image display area so that the tongue surface image is displayed in the tongue surface image display area.

4. The method according to claim 1, wherein: The step of performing recognition processing on the captured person image in the image display area to obtain an image recognition result includes: In response to determining that the photographed person image is a tongue surface image, performing tongue coating detection on the tongue surface image to obtain a tongue coating feature map; Performing tongue surface feature detection on the tongue surface image to obtain tongue surface detection features; The tongue coating feature map and the tongue surface detection features are input into a preset tongue surface feature recognition model to generate an image recognition result, wherein the tongue surface feature recognition model is deployed on a local client of an image shooting interface.

5. The method according to claim 1, wherein: The method further comprises: In response to the image detection information not satisfying the image detection condition, an image failure prompt is displayed to the image shooting interface, and image area auxiliary lines are displayed again in the video display area.

6. The method according to claim 1, wherein: The method further comprises: In response to receiving a brightness adjustment operation for a brightness control in an image capture interface, a brightness value corresponding to the brightness adjustment operation is sent to the image capture terminal so that the image capture terminal can synchronously adjust the brightness of the fill light.

7. A character image shooting interface interaction device, comprising: An acquisition unit is configured to acquire a preview video stream of a person shot by an image shooting terminal, and to display the preview video stream of the person in a video display area of ​​an image shooting interface; A display unit, configured to display image area auxiliary lines in the video display area in response to receiving a selection operation on an image area control in the image capture interface; An image capture unit is configured to capture the image in the video display area in response to receiving a selection operation for an image area capture control, to obtain a captured character image; A region detection unit is configured to perform region detection on the captured person image based on the selection operation of the image region control to generate image detection information; a display unit configured to display the captured person image in an image display area in the image capture interface in response to determining that the image detection information satisfies a preset image detection condition; The recognition processing and display unit is configured to, in response to receiving a selection operation for an image recognition control in the image shooting interface, perform recognition processing on the captured person image in the image display area to obtain an image recognition result, and display the image recognition result in the result display area of ​​the image shooting interface; The image area control includes at least one of the following: a tongue surface image acquisition control, a tongue base image acquisition control, a facial image acquisition control, and an eye image acquisition control; and In response to receiving a selection operation on an image area control in an image shooting interface, displaying image area auxiliary lines in the video display area includes: In response to receiving a selection operation on a tongue surface image acquisition control in an image shooting interface, obtaining a preset tongue surface image auxiliary line, and sending a corresponding tongue surface prompt voice message to the image shooting terminal; Capturing a character image from a preview video stream of a character displayed in the video display area to obtain a captured character image; Performing mouth region detection on the captured person image to obtain a mouth region detection frame; Using the mouth area detection frame, the tongue surface image auxiliary line is corrected to obtain a corrected tongue surface image auxiliary line; Displaying the corrected tongue surface image auxiliary line as an image area auxiliary line in the video display area, and sending the corrected tongue surface image auxiliary line to the image shooting terminal so that the image shooting terminal can focus on the image area corresponding to the corrected tongue surface image auxiliary line; The performing of region detection on the captured person image based on the selection operation of the image region control to generate image detection information includes: In response to receiving a selection operation on a tongue surface image acquisition control in an image shooting interface, acquiring a preset coordinate distance ratio set; Performing tongue surface area detection on the photographed person image to generate a tongue surface area key point coordinate group, wherein the tongue surface area key point coordinates in the tongue surface area key point coordinate group are at least one of the following: tongue tip coordinates, tongue surface center point coordinates, upper lip center point coordinates, left mouth corner coordinates, right mouth corner coordinates, tongue surface left side coordinates or tongue surface right side coordinates; Determine the distance value between the coordinates of each tongue surface area key point in the tongue surface area key coordinate group to obtain a distance value set; Determine the ratio of each distance value in the distance value set to obtain a distance ratio value set; In response to determining that the distance ratio set and the preset coordinate distance ratio set satisfy a preset ratio condition, information characterizing that the image detection has passed is determined as image detection information.

8. An electronic device, comprising: one or more processors; a storage device having one or more programs stored thereon, When the one or more programs are executed by the one or more processors, the one or more processors implement the method according to any one of claims 1 to 6.