Control method and device, electronic equipment and storage medium
By utilizing an image acquisition method that switches between high and low frame rates in display device quality testing, the problem of invalid image acquisition was solved, and accurate quality testing was achieved.
Patent Information
- Application Number
- CN202211530037.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-11-30
- Publication Date
- 2025-12-19
- Estimated Expiration
- 2042-11-30
AI Technical Summary
In display device quality testing, cameras are prone to capturing invalid images, making it impossible to effectively judge the quality of the display device.
By acquiring a second resolution image sequence at a higher second shooting frame rate under the image switching command, and determining that the display device has completed the image switching, a first resolution image sequence is acquired at a lower first shooting frame rate for quality detection to avoid acquiring invalid images.
This effectively avoids capturing invalid images, ensuring the accuracy and efficiency of display device quality testing.
Smart Images

Figure CN115866338B_ABST
Abstract
Description
TECHNICAL FIELD
[0001] The present application relates to the technical field of control, more particularly, to a control method and device, an electronic device and a storage medium. BACKGROUND
[0002] In the display device quality detection of a production line, the display device needs to switch to display multiple test images, and the display device is captured by a camera for image acquisition once for each test image. Among them, the multiple test images are automatically switched at a certain time interval, and the camera performs image acquisition according to the above time interval. However, due to various uncertain factors, the camera may capture invalid pictures, such as pictures of two test images being switched, and the invalid pictures cannot be used for quality judgment of the display device. Therefore, how to avoid the camera from capturing invalid pictures becomes a technical problem to be solved. SUMMARY
[0003] The purpose of the present application is to provide a control method and device, an electronic device and a storage medium, including the following technical solutions:
[0004] A control method, the method comprising:
[0005] If an image switching instruction is obtained, an image displayed by a display device is captured based on a second shooting frame rate to obtain a second resolution image sequence; the image switching instruction is used to instruct the display device to switch the displayed image;
[0006] If a change of a target attribute of a second resolution image in the second resolution image sequence meets a condition, it is determined that the display device completes the switching of the displayed image;
[0007] An image currently displayed by the display device is captured based on a first shooting frame rate to obtain a first resolution image sequence; the first shooting frame rate is less than the second shooting frame rate; and the first resolution image sequence is used for quality detection of the display device.
[0008] The above method, optionally, the target attribute includes at least one of the following: brightness or grayscale of the second resolution image, brightness or grayscale of an adhering object on the display device, shape of the adhering object, and area of the adhering object.
[0009] The above method, optionally, the change of the target attribute of the second resolution image in the second resolution image sequence meets the condition, comprising:
[0010] The brightness or grayscale of the second resolution image in the second resolution image sequence decreases and then increases to a stable state.
[0011] The method, optionally, the change of the target attribute of the second resolution image in the second resolution image sequence meets at least one of the following conditions:
[0012] At least one of the brightness, the gray scale, and the area of the second resolution image in the second resolution image sequence decreases and then increases to a stable state.
[0013] The shape of the second resolution image in the second resolution image sequence disappears and then presents a stable shape.
[0014] The method, optionally, further comprises:
[0015] The display device in the off state is image-captured based on the first shooting frame rate to obtain a to-be-identified image.
[0016] The to-be-identified image is identified to determine at least one of the position, the shape, the area, the brightness, and the gray scale of the identified adherend.
[0017] The change of the target attribute of the second resolution image in the second resolution image sequence is determined based on the target attribute of the adherend at the target position.
[0018] The confidence of the adherend at the target position is higher than the confidence of the adherend at a non-target position.
[0019] The method, optionally, the confidence of the adherend at the target position is higher than the confidence of the adherend at a non-target position, including at least one of the following conditions:
[0020] The shape of the adherend at the target position is an irregular shape.
[0021] The area of the adherend at the target position is greater than or equal to the area of the adherend at a non-target position.
[0022] The brightness of the adherend at the target position is greater than or equal to the brightness of the adherend at a non-target position.
[0023] The gray scale of the adherend at the target position is greater than or equal to the gray scale of the adherend at a non-target position.
[0024] A control device, the device comprising:
[0025] The acquisition module is configured to, if an image switching instruction is obtained, acquire an image displayed by a display device based on a second shooting frame rate to obtain a second resolution image sequence; the image switching instruction is used to instruct the display device to switch the displayed image.
[0026] determining that the display device completes switching of the displayed image if a change in the target attribute of the second resolution image in the sequence of second resolution images meets a condition;
[0027] The acquisition module is further configured to acquire an image currently displayed by the display device based on a first shooting frame rate to obtain a sequence of first resolution images; the first shooting frame rate is less than the second shooting frame rate; and the sequence of first resolution images is used for quality detection of the display device.
[0028] Optionally, the target attribute includes at least one of the following: brightness or grayscale of the second resolution image, brightness or grayscale of an adherend on the display device, shape of the adherend, and area of the adherend.
[0029] An electronic device includes:
[0030] a memory configured to store a program;
[0031] a processor configured to invoke and execute the program in the memory, and implement each step of the control method according to any one of the preceding embodiments by executing the program.
[0032] A readable storage medium having a computer program stored thereon, the computer program being executed by a processor to implement each step of the control method according to any one of the preceding embodiments.
[0033] As can be seen from the above solutions, the control method, device, electronic device, and storage medium provided by the present application can be used to acquire an image displayed by a display device at a second shooting frame rate to obtain a sequence of second resolution images, and if a change in a target attribute of the second resolution image in the sequence of second resolution images meets a condition, it indicates that the display device completes switching of the displayed image, at which time the display device is acquired at a first shooting frame rate to obtain a first resolution image used for quality detection of the display device. That is, the present application acquires the image used for quality detection of the display device only when it is determined that the display device completes switching of the displayed image, thereby avoiding acquisition of invalid images. BRIEF DESCRIPTION OF DRAWINGS
[0034] In order to more clearly illustrate the technical solutions of the embodiments of the present application, the following will briefly introduce the drawings needed by the embodiments. Obviously, the drawings in the following description are only some embodiments of the present application, and for those skilled in the art, other drawings can also be obtained without creative labor based on these drawings.
[0035] Figures la-lbTwo adjacent test images provided for an embodiment of the present application;
[0036] Figure lc An example of invalid images collected when collecting another image after the image displayed first in Figure la and Figure lb is collected by the image collection device provided for an embodiment of the present application;
[0037] Figures ld-le Two other adjacent test images provided for an embodiment of the present application;
[0038] Figure lf An example of invalid images collected when collecting another image after the image displayed first in Figure ld and Figure le is collected by the image collection device provided for an embodiment of the present application;
[0039] Figure 2 An implementation flowchart of the control method provided for an embodiment of the present application;
[0040] Figure 3a A gray level change curve of a second resolution image in a second resolution image sequence when the display device switches from a smaller gray level image to a larger gray level image;
[0041] Figure 3b A gray level change curve of a second resolution image in a second resolution image sequence when the display device switches from a larger gray level image to a smaller gray level image;
[0042] Figure 4 An implementation flowchart of determining the adhering object on the display device provided for an embodiment of the present application;
[0043] Figure 5 An example of the to-be-recognized image and the recognition result of the adhering object thereof provided for an embodiment of the present application;
[0044] Figures 6a-6c Three attribute examples of the gray level image collected by the image collection device and the dust at the three target positions thereof when the display device displays three different test images provided for an embodiment of the present application;
[0045] Figure 7 A structural schematic diagram of the control device provided for an embodiment of the present application;
[0046] Figure 8 A structural schematic diagram of the electronic device provided for an embodiment of the present application.
[0047] The terms "first", "second", "third", "fourth" and the like in the description and in the claims, if any, are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order. It is to be understood that the use of these terms herein is to be construed to cover a generalised use of these terms to describe elements distinguished from other elements by more than one characteristic. It is to be understood that the terms so used are interchangeable under appropriate circumstances and embodiments of the application described herein are capable of operating according to other sequences, sequences of steps, sequences of elements, sequences of actions other than the one set forth herein. DETAILED DESCRIPTION
[0048] The technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, rather than all the embodiments of the present application. Based on the embodiments in the present application, all other embodiments obtained by a person of ordinary skill in the art without creative effort belong to the scope of protection of the present application.
[0049] In the display device quality detection of the production line, the display device needs to be subjected to "bad point inspection", and the bad points on the display device can include but are not limited to black points, white points, color points, light leakage, frame offset, etc. In order to as far as possible not miss the detection of any defect, the display device needs to display multiple images in turn, and these images include black and white images (i.e. grayscale images) and color images. After each image is displayed, the image acquisition device acquires the image displayed by the display device, and judges whether the display device has bad points based on the acquired image, i.e. performs quality detection on the display device based on the acquired image.
[0050] At present, in the process of quality detection of the display device, the display device automatically switches at a certain time interval, and the image acquisition device also acquires images at this beat. However, due to various uncertain factors, the image acquisition device may acquire invalid images, such as the screen of two images being switched.
[0051] As shown in FIG. 1, two adjacent test images are Figures la-lc , wherein Figure la and Figure lb are two adjacent test images, and one of the images needs to be switched to display the other image after the display of the image is completed. After the image acquisition device acquires the image displayed first in Figure la and Figure lb , the image acquired when acquiring the other image may be the invalid image as shown in FIG. 2. Figure lc
[0052] As shown in FIG. 3, two adjacent test images are Figures ld-lf , wherein Figure ld and Figure le are two adjacent test images, and one of the images needs to be switched to display the other image after the display of the image is completed. After the image acquisition device acquires the image displayed first in Figure ld and Figure le After the image displayed first is displayed, the image acquired when another image is acquired can be Figure lf an invalid image as shown.
[0053] To avoid acquiring an invalid image, the present application is proposed. The control method and device provided by embodiments of the present application can be used for an image acquisition device.
[0054] As Figure 2 shown, an implementation flowchart of the control method provided by embodiments of the present application can include the following steps:
[0055] Step S201: If an image switching instruction is obtained, acquire the image displayed by the display device based on a second shooting frame rate to obtain a second-resolution image sequence; the image switching instruction is used to instruct the display device to switch the displayed image.
[0056] In the embodiments of the present application, the image switching instruction can be sent to the image acquisition device at the same time when the display device is triggered to switch the displayed image. Alternatively, the display device can be automatically triggered by the display device to switch the displayed image, and the image switching instruction can be sent to the image acquisition device by the display device; or the display device can be triggered by a third-party device other than the display device and the image acquisition device to switch the displayed image, and the image switching instruction can be sent to the image acquisition device by the third-party device.
[0057] When the image switching instruction is obtained, it indicates that the display device starts to switch the displayed image, at this time, the shooting frame rate of the image acquisition device can be switched to the second shooting frame rate, so that the image acquisition device acquires the image displayed by the display device based on the second shooting frame rate to obtain a plurality of second-resolution images, i.e., a second-resolution image sequence, which is used to determine whether the display device completes the switching of the displayed image.
[0058] Alternatively, the second shooting frame rate can be the maximum shooting frame rate that the image acquisition device can achieve. As an example, the second shooting frame rate can be 35 fps, and if the maximum shooting frame rate that the image acquisition device can achieve is greater than 35 fps, the second shooting frame rate can be greater than 35 fps.
[0059] Step S202: If the change of the target attribute of the second-resolution image in the second-resolution image sequence meets a condition, it is determined that the display device completes the switching of the displayed image.
[0060] The target attribute of the second-resolution image can be the target attribute of the entire second-resolution image, or the target attribute of a partial region of the second-resolution image.
[0061] The second resolution images in the second resolution image sequence are captured at different times, and therefore, the change of the target attribute of the second resolution images in the second resolution image sequence refers to the change of the target attribute of the second resolution images over time.
[0062] In step S203, the image currently displayed by the display device is captured based on a first shooting frame rate to obtain a first resolution image sequence; the first shooting frame rate is less than the second shooting frame rate; and the first resolution image sequence is used for quality detection of the display device.
[0063] When it is determined that the display device completes the switching of the displayed image, the shooting frame rate of the image capturing device is switched to the first shooting frame rate, and the image currently displayed by the display device is captured based on the first shooting frame rate to obtain a first resolution image sequence used for quality detection of the display device.
[0064] Since the first shooting frame rate is less than the second shooting frame rate, the first resolution is greater than the second resolution, and the number of images in the second resolution image sequence is greater than the number of images in the first resolution image sequence.
[0065] The control method provided by the embodiments of the present application can obtain an image switching instruction, capture the display device at a second shooting frame rate to obtain a second resolution image sequence, and if the change of the target attribute of the second resolution images in the second resolution image sequence meets a condition, it indicates that the image displayed by the display device is switched, at this time, the display device is captured at a first shooting frame rate to obtain a first resolution image used for quality detection of the display device, that is, the image used for quality detection of the display device is captured only when it is determined that the image displayed by the display device is switched, so that invalid images are avoided.
[0066] In an optional embodiment, the target attribute of the second resolution image can include at least one of the following:
[0067] The brightness or grayscale of the second resolution image.
[0068] The brightness or grayscale of the attachment on the display device in the second resolution image. Optionally, the attachment on the display device can be dust, or an artificially added attachment such as a transparent film, and as an example, a plurality of positions on the display device can be randomly selected and respectively provided with a transparent film.
[0069] The shape of the attachment on the display device in the second resolution image.
[0070] The area of the attachment on the display device in the second resolution image.
[0071] In the embodiments of the present application, the image acquisition device can be a color image acquisition device or a grayscale image acquisition device.
[0072] In the case where the image acquisition device is a color image acquisition device, the image acquired by the image acquisition device is a color image. When determining the brightness of the second resolution image, the brightness of each pixel in the second resolution image can be read, and the brightness of all pixels in the second resolution image can be averaged to obtain the brightness of the second resolution image. When determining the grayscale of the second resolution image, the second resolution image can be converted into a second resolution grayscale image, the grayscale of each pixel in the second resolution grayscale image can be read, and the grayscale of all pixels read can be averaged to obtain the grayscale of the second resolution image.
[0073] In the case where the image acquisition device is a color image acquisition device, when determining the brightness of the at least part of the display device in the second resolution image, since there can be multiple places on the display device where the display device is attached, the brightness of each pixel in the position where at least part of the display device is attached can be read, and the brightness of each pixel in the same position where the display device is attached can be averaged to obtain the brightness of the at least part of the display device in the second resolution image. When determining the grayscale of the at least part of the display device in the second resolution image, the second resolution image can be converted into a second resolution grayscale image first, and then the grayscale of each pixel in the position where at least part of the display device is attached can be read, and the grayscale of each pixel in the same position where the display device is attached can be averaged to obtain the grayscale of the at least part of the display device in the second resolution image.
[0074] In the case where the image acquisition device is a color image acquisition device, when determining the shape or area of the at least part of the display device in the second resolution image, the shape or area of each of the at least part of the display device in the second resolution image can be determined directly, or the second resolution image can be converted into a second resolution grayscale image first, and then the shape or area of each of the at least part of the display device in the second resolution grayscale image can be determined.
[0075] In the case where the image acquisition device is a color image acquisition device, when performing quality detection on the display device based on the first resolution image sequence, the first resolution image can be converted into a first resolution grayscale image first, and then the quality detection on the display device can be performed by using the first resolution grayscale image.
[0076] When the image acquisition device is a grayscale image acquisition device, the image acquired by the image acquisition device is a grayscale image. At this time, the grayscale of each pixel in the second resolution image can be read, and the brightness of all pixels in the second resolution image can be averaged to obtain the grayscale of the second resolution image.
[0077] When the image acquisition device is a grayscale image acquisition device, since there may be multiple attachments on the display device, the grayscale of each pixel in each attachment location can be read from the second resolution image, and the grayscale of each pixel in the same attachment location can be averaged to obtain the grayscale of at least some of the attachments on the display device in the second resolution image.
[0078] When the image acquisition device is a grayscale image acquisition device, since there may be multiple attachments on the display device, when determining the shape or area of the attachments on the display device in the second resolution image, the shape or area of each attachment at the location of at least some of the attachments on the display device can be determined in the second resolution image.
[0079] This application research found that the process of an image display device switching images is a process in which one image gradually disappears and the next image gradually appears. Based on this, in an optional embodiment, the change in the target attribute of the second-resolution images in the aforementioned second-resolution image sequence may satisfy the following conditions:
[0080] In a second-resolution image sequence, the brightness of the second-resolution image decreases and then increases to a stable state. Alternatively,
[0081] After the grayscale of the second-resolution image in the second-resolution image sequence decreases, it increases again to a stable state.
[0082] like Figure 3a The figure shows the grayscale change curve of the second resolution image in the second resolution image sequence when the display device provided in this application switches from a lower grayscale image (i.e., the test image before switching is a darker image) to a higher grayscale image (i.e., the next test image is a brighter image).
[0083] like Figure 3b The figure shows the grayscale change curve of the second resolution image in the second resolution image sequence when the display device provided in this application switches from a larger grayscale image (i.e., a brighter image) to a smaller grayscale image (i.e., a darker image).
[0084] from Figure 3a and Figure 3bIt can be seen that when the display device starts to switch the image, the image displayed by the display device gradually disappears, at this time the gray scale of the image displayed by the display device gradually becomes smaller, and after decreasing to a certain value, it starts to become larger, indicating that the next test image starts to appear, at this time the gray scale of the image displayed by the display device gradually becomes larger, and when the gray scale increases to a certain value, the gray scale value will remain stable in a short time, indicating that the image switching of the display device is completed, at this time the shooting frame rate of the image acquisition device can be adjusted to the first shooting frame rate to collect the image for quality detection of the display device.
[0085] In an optional embodiment, the change of the target attribute of the second resolution image in the sequence of second resolution images satisfies a condition, including at least one of the following:
[0086] At least one of the brightness, the gray scale, and the area of the attachment of the second resolution image in the sequence of second resolution images decreases and then increases to a stable state.
[0087] The shape of the attachment of the second resolution image in the sequence of second resolution images disappears and then presents a stable shape.
[0088] As described above, there can be multiple attachments on the display device. Based on this,
[0089] The decrease and then increase to a stable state of the brightness of the attachment of the second resolution image in the sequence of second resolution images can include that the brightness of at least part of the attachment of the second resolution image in the sequence of second resolution images decreases and then increases to a stable state. The brightness of the attachment in the stable state is the same as or different from the brightness of the at least part of the attachment before the decrease. Whether the brightness is the same or different is determined by the images before and after the switching.
[0090] The decrease and then increase to a stable state of the gray scale of the attachment of the second resolution image in the sequence of second resolution images can include that the gray scale of at least part of the attachment of the second resolution image in the sequence of second resolution images decreases and then increases to a stable state. The gray scale of the at least part of the attachment in the stable state is the same as or different from the gray scale of the at least part of the attachment before the decrease. Whether the gray scale is the same or different is determined by the images before and after the switching.
[0091] The decrease and then increase to a stable state of the area of the attachment of the second resolution image in the sequence of second resolution images can include that the area of at least part of the attachment of the second resolution image in the sequence of second resolution images decreases and then increases to a stable state. The area of the at least part of the attachment in the stable state is the same as or different from the area of the at least part of the attachment before the decrease. Whether the area is the same or different is determined by the images before and after the switching. In this example, the area of the attachment can refer to
[0092] The shape of the attachment on the second resolution image in the second resolution image sequence disappears and then presents a stable shape again, which can include that the shape of at least part of the attachment on the second resolution image in the second resolution image sequence disappears and then presents a stable shape again. Wherein, the shape of the at least part of the attachment in the stable state is the same as or different from the shape of the at least part of the attachment before the shape disappears. Whether the same or not is determined by the images before and after switching.
[0093] In an optional embodiment, the control method provided by the application can further include the process of determining the attachment on the display device. Based on this, an implementation flowchart for determining the attachment on the display device provided by the embodiments of the application can include Figure 4 as shown, which can include:
[0094] Step S401: image acquisition is performed on the display device in the off state based on a first shooting frame rate to obtain a to-be-recognized image.
[0095] Wherein, the display device in the off state refers to the state of the display device when it is not powered on. Since the display device is placed in a dark environment (such as a black box) when quality detection is performed on the display device, the attachment on the display device cannot be photographed when the display device is in the off state. Based on this, in order to photograph the attachment on the display device, a light source can be provided on the side of the display device to perform side lighting on the display device, so that the attachment on the display device can be photographed.
[0096] Since the to-be-recognized image is determined based on the first shooting frame rate, the resolution of the to-be-recognized image is the first resolution.
[0097] Step S402: attachment recognition is performed on the to-be-recognized image to determine the recognized attachment, so as to determine the attributes of the attachment, including at least one of the position, shape, area, brightness and gray scale.
[0098] Optionally, the to-be-recognized image can be processed by using a pre-trained attachment detection model to obtain an attachment recognition result. The attachment recognition result is used to represent whether each pixel in the to-be-recognized image belongs to the attachment. The attachment recognition result can include but is not limited to the position information of the attachment. Specifically, it can include the position of the pixel belonging to the attachment and the position of the region belonging to the attachment. Wherein, the region belonging to the attachment refers to each pixel in the region belonging to the attachment. The region belonging to the attachment is usually marked by the minimum circumscribed rectangle, so the position of the region belonging to the attachment can be the position of the circumscribed rectangle of the region belonging to the attachment. For example, Figure 5As shown, the example diagram of the to-be-recognized image and the recognition result of the attached object is provided by the embodiment of the present application. In the example, the attached object is dust, and 11 regions belonging to the dust are detected.
[0099] The shape, area, brightness and grayscale of the attached object can be the shape, area and brightness of the region belonging to the attached object. The area of the attached object can be the pixel area of the region belonging to the attached object, i.e., the number of pixels in the region belonging to the attached object; the brightness or grayscale of the attached object is obtained by fusing the brightness or grayscale of the pixels in the region belonging to the attached object, for example, the brightness of the attached object is the average of the brightness of the pixels in the region belonging to the attached object, and the grayscale of the attached object is the average of the grayscale of the pixels in the region belonging to the attached object.
[0100] In the case where the properties (i.e., at least one of the position, shape, area, brightness and grayscale) of each region belonging to the attached object in the to-be-recognized image are obtained, the attached object located at the target position can be determined in the to-be-recognized image according to the properties of the region belonging to the attached object, and then the target position in the second resolution image in the second resolution image sequence is determined based on the target position in the to-be-recognized image, and then the change of the target property of the attached object at the target position in the second resolution image is determined. As shown, Figure 5 As shown, three positions of the dust are selected as the target positions.
[0101] Optionally, the change of the target property of the attached object at the target position in the second resolution image sequence can be determined, and the change of the target property of the attached object at the target position in the second resolution image is determined as the change of the target property of the second resolution image in the second resolution image sequence. As shown, Figures 6a-6c As shown, when the display device provided by the embodiment of the present application displays three different test images, the example diagram of the grayscale image and the three properties of the dust at the three target positions collected by the image collection device.
[0102] Optionally, the confidence of the attached object located at the target position is higher than the confidence of the attached object located at the non-target position. Specifically, it can include at least one of the following:
[0103] The shape of the attached object located at the target position is an irregular shape. The shape of the attached object at the target position refers to the contour of the attached object at the target position. As an example, the irregular shape can be other shapes except for rectangular, circular, equilateral polygon.
[0104] The area of the attached object located at the target position is greater than or equal to the area of the attached object located at the non-target position.
[0105] The brightness of the attached object located at the target position is greater than or equal to the brightness of the attached object located at the non-target position.
[0106] The gray scale of the attachment located at the target position is greater than or equal to the gray scale of the attachment located at the non-target position.
[0107] Optionally, since the position of the attachment in the image to be identified has been determined, after the second resolution image sequence is obtained, the position of the attachment in the second resolution image can be determined according to the position of the attachment in the image to be identified, the first resolution and the second resolution, so that the change of the gray scale and the brightness of the attachment can be accurately tracked. In this embodiment, it is considered that the attachment detected in the second resolution image is the attachment detected in the image to be identified, and therefore, the attachment detection can not be performed on the second resolution image.
[0108] In another embodiment, it is considered that the attachment detected in the second resolution image can be different from the attachment detected in the image to be identified, and based on this, the process for determining the attachment in the second resolution image provided in the present application can include: after the second resolution image sequence is obtained, the position of the region belonging to the attachment in the second resolution image is determined according to the position of the region belonging to the attachment in the image to be identified, the first resolution and the second resolution, and then the attachment detection model pre-trained is used to perform the attachment detection on the region belonging to the attachment in the second resolution image, so as to determine the position of each pixel belonging to the attachment in the second resolution image, and then determine the brightness, the gray scale, the shape and the area of the attachment in the second resolution image.
[0109] Optionally, the target position has multiple target positions, for example, 3-5 target positions can be set, and when the target attributes of the attachments at the multiple target positions are all in a stable state, it is determined that the display device completes the switching of the displayed image.
[0110] Corresponding to the method embodiment, the present application also provides a control device, and a structural schematic diagram of the control device provided in the present application is shown in Figure 7 , which can include:
[0111] The acquisition module 701 and the determination module 702; wherein,
[0112] The acquisition module 701 is configured to acquire the image displayed by the display device based on a second shooting frame rate to obtain a second resolution image sequence if an image switching instruction is obtained; the image switching instruction is used to instruct the display device to switch the displayed image;
[0113] The determination module 702 is configured to determine that the display device completes the switching of the displayed image if the change of the target attribute of the second resolution image in the second resolution image sequence meets a condition;
[0114] The collection module 701 is further configured to collect images currently displayed by the display device based on a first shooting frame rate to obtain a first resolution image sequence; the first shooting frame rate is less than the second shooting frame rate; and the first resolution image sequence is used for quality detection of the display device.
[0115] The control device provided in the embodiments of the present application obtains the second resolution image sequence by collecting images of the display device at the second shooting frame rate if the image switching instruction is obtained, and determines that the image switching of the display device is completed if the change of the target attribute of the second resolution image in the second resolution image sequence meets a condition, at this time, the first resolution image sequence used for quality detection of the display device is obtained by collecting images of the display device at the first shooting frame rate, that is, the image used for quality detection of the display device is collected only when it is determined that the image switching of the display device is completed, so that invalid images are avoided.
[0116] In an optional embodiment, the target attribute includes at least one of the following: brightness or grayscale of the second resolution image, brightness or grayscale of the adhering object on the display device, shape of the adhering object, and area of the adhering object.
[0117] In an optional embodiment, the change of the target attribute of the second resolution image in the second resolution image sequence meets the condition, including:
[0118] The brightness or grayscale of the second resolution image in the second resolution image sequence decreases and then increases to a stable state.
[0119] In an optional embodiment, the change of the target attribute of the second resolution image in the second resolution image sequence meets the condition, including at least one of the following:
[0120] At least one of the brightness, grayscale, and area of the adhering object of the second resolution image in the second resolution image sequence decreases and then increases to a stable state.
[0121] The shape of the adhering object of the second resolution image in the second resolution image sequence disappears and then presents a stable shape.
[0122] In an optional embodiment, the collection module 701 is further configured to:
[0123] collect images of the display device in the off state based on the first shooting frame rate to obtain a to-be-recognized image;
[0124] The control module further includes:
[0125] The identification module is configured to perform attachment identification on the to-be-identified image to determine at least one of a position, a shape, an area, a brightness, and a grayscale of the identified attachment;
[0126] The determination module 702 is further configured to determine a change of the target attribute of the second resolution image in the second resolution image sequence based on the target attribute of the attachment at the target position.
[0127] The confidence of the attachment at the target position is higher than the confidence of the attachment at the non-target position.
[0128] In an optional embodiment, the confidence of the attachment at the target position is higher than the confidence of the attachment at the non-target position, including at least one of the following:
[0129] The shape of the attachment at the target position is irregular.
[0130] The area of the attachment at the target position is greater than or equal to the area of the attachment at the non-target position.
[0131] The brightness of the attachment at the target position is greater than or equal to the brightness of the attachment at the non-target position.
[0132] The grayscale of the attachment at the target position is greater than or equal to the grayscale of the attachment at the non-target position.
[0133] Corresponding to the method embodiments, the present application further provides an electronic device, a structural schematic diagram of which is shown in Figure 8 The electronic device can include at least one processor 1, at least one communication interface 2, at least one memory 3, and at least one communication bus 4.
[0134] In the embodiments of the present application, the number of the processor 1, the communication interface 2, the memory 3, and the communication bus 4 is at least one, and the processor 1, the communication interface 2, and the memory 3 complete communication with each other through the communication bus 4.
[0135] The processor 1 can be a central processing unit CPU, or a specific integrated circuit ASIC (Application Specific Integrated Circuit), or one or more integrated circuits configured to implement the embodiments of the present application, etc.
[0136] The memory 3 can include a high-speed RAM memory, and can also include a non-volatile memory, such as at least one disk memory.
[0137] The memory 3 stores a program, and the processor 1 can call the program stored in the memory 3, and the program is used for:
[0138] If an image switching instruction is obtained, images displayed by the display device are collected based on a second shooting frame rate, and a second resolution image sequence is obtained; the image switching instruction is used to instruct the display device to switch the displayed images;
[0139] If a change condition of a target attribute of a second resolution image in the second resolution image sequence meets a condition, it is determined that the display device completes the switching of the displayed images;
[0140] The current displayed images of the display device are collected based on a first shooting frame rate, and a first resolution image sequence is obtained; the first shooting frame rate is less than the second shooting frame rate; and the first resolution image sequence is used for quality detection of the display device.
[0141] Optionally, the refinement function and the extension function of the program can refer to the description above.
[0142] The embodiment of the application further provides a storage medium, which can store a program suitable for processor execution, and the program is used for:
[0143] If an image switching instruction is obtained, images displayed by the display device are collected based on a second shooting frame rate, and a second resolution image sequence is obtained; the image switching instruction is used to instruct the display device to switch the displayed images;
[0144] If a change condition of a target attribute of a second resolution image in the second resolution image sequence meets a condition, it is determined that the display device completes the switching of the displayed images;
[0145] The current displayed images of the display device are collected based on a first shooting frame rate, and a first resolution image sequence is obtained; the first shooting frame rate is less than the second shooting frame rate; and the first resolution image sequence is used for quality detection of the display device.
[0146] Optionally, the refinement function and the extension function of the program can refer to the description above.
[0147] Those skilled in the art can realize that the units and algorithm steps of the examples described in combination with the embodiments disclosed in the present application can be realized by electronic hardware or a combination of computer software and electronic hardware. Whether the functions are realized in hardware or software mode depends on the specific application and design constraints of the technical solution. The skilled person can use different methods to realize the described functions for each specific application, but such implementation should not be considered beyond the scope of the present application.
[0148] In several embodiments provided in the present application, it should be understood that the disclosed system, device and method can be implemented by other manners. In addition, the coupling or direct coupling or communication connection between the units shown or discussed can be indirect coupling or communication connection through some interfaces, devices or units, which can be electrical, mechanical or other forms.
[0149] The units described as separate components can or can not be physically separate, and the components shown as units can or can not be physical units, i.e., they can be located in one place or distributed on multiple network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the embodiment.
[0150] In addition, the functional units in each embodiment of the present application can be integrated in one processing unit, or each unit can be physically present separately, or two or more units can be integrated in one unit.
[0151] It should be understood that the features in the embodiments of the present application can be combined with each other to achieve the purpose of solving the above technical problems.
[0152] If the functions are realized in the form of software function units and sold or used as independent products, they can be stored in a computer readable storage medium. Based on this understanding, the technical solutions of the present application can be embodied in the form of software product, and the computer software product is stored in a storage medium, including a plurality of instructions for making a computer device (which can be a personal computer, a server, or a network device, etc.) execute all or part of the steps of the method described in the embodiments of the present application. The storage medium mentioned above includes: U disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), magnetic disk or optical disk and other various storage program codes.
[0153] The above description of the disclosed embodiments enables those skilled in the art to implement or use the present application. Various modifications to the embodiments will be apparent to those skilled in the art, and the general principles defined herein can be implemented in other embodiments without departing from the spirit or scope of the present application. Therefore, the present application will not be limited to the embodiments shown herein, but will conform to the widest scope consistent with the principles and novel features disclosed herein.
Claims
1. A control method, the method comprising: if an image switching instruction is obtained, collecting images displayed by a display device based on a second shooting frame rate to obtain a second resolution image sequence; the image switching instruction is used to instruct the display device to switch the displayed images; the second resolution image sequence is used to determine whether the display device completes the switching of the displayed images; if a change in a target attribute of a second resolution image in the second resolution image sequence meets a condition, it is determined that the display device completes the switching of the displayed images; collecting images currently displayed by the display device based on a first shooting frame rate to obtain a first resolution image sequence; the first shooting frame rate is less than the second shooting frame rate; the first resolution image sequence is used to detect the quality of the display device. 2.The method of claim 1, wherein the target attribute comprises at least one of the following: brightness or grayscale of the second resolution image, brightness or grayscale of an adherend on the display device, shape of the adherend, area of the adherend. 3.The method of claim 2, wherein the change in the target attribute of the second resolution image in the second resolution image sequence meets the condition, comprising: brightness or grayscale of the second resolution image in the second resolution image sequence decreases and then increases to a stable state. 4.The method of claim 2, wherein the change in the target attribute of the second resolution image in the second resolution image sequence meets the condition, comprising at least one of the following: at least one of the brightness, grayscale, and area of the adherend of the second resolution image in the second resolution image sequence decreases and then increases to a stable state; shape of the adherend of the second resolution image in the second resolution image sequence disappears and then presents a stable shape. 5.The method of claim 4, further comprising: collecting images of the display device in an off state based on the first shooting frame rate to obtain a to-be-recognized image; recognizing the adherend in the to-be-recognized image to determine at least one of the following: position, shape, area, brightness, and grayscale of the recognized adherend; determining the change in the target attribute of the second resolution image in the second resolution image sequence based on the target attribute of the adherend at the target position; wherein a confidence of the adherend at the target position is higher than a confidence of the adherend at a non-target position. 6.The method of claim 5, wherein the confidence of the adherend at the target position is higher than the confidence of the adherend at the non-target position, comprising at least one of the following: the shape of the adherend at the target position is an irregular shape; the area of the adherend at the target position is greater than or equal to the area of the adherend at the non-target position; the brightness of the adherend at the target position is greater than or equal to the brightness of the adherend at the non-target position; the grayscale of the adherend at the target position is greater than or equal to the grayscale of the adherend at the non-target position. 7.A control device, the device comprising: The collection module is configured to collect the image displayed by the display device based on a second shooting frame rate to obtain a second-resolution image sequence if an image switching instruction is obtained; The image switching instruction is used to instruct the display device to switch the displayed image; The second-resolution image sequence is used to determine whether the display device completes the switching of the displayed image; The determination module is configured to determine that the display device completes the switching of the displayed image if a change in a target attribute of a second-resolution image in the second-resolution image sequence meets a condition. The collection module is further configured to collect the image currently displayed by the display device based on a first shooting frame rate to obtain a first-resolution image sequence; the first shooting frame rate is less than the second shooting frame rate; and the first-resolution image sequence is used for quality detection of the display device.
8. The apparatus of claim 7, wherein, The target attribute includes at least one of the following: brightness or grayscale of the second-resolution image, brightness or grayscale of an adhering object on the display device, shape of the adhering object, and area of the adhering object. 9.An electronic device comprising: a memory configured to store a program; a processor configured to call and execute the program in the memory, and realize each step of the control method according to any one of claims 1-6 by executing the program. 10.A readable storage medium having a computer program stored thereon, the computer program, when executed by a processor, realizes each step of the control method according to any one of claims 1-6.
Citation Information
Patent Citations
Shooting frame rate adjusting method and electronic device
CN103905708A
Image processing method, output control method, image acquisition device and display device
CN111757002A