Equipment placement detection method and device
Through the processing of the appearance image of the smart device, its placement position in the inspection bin is determined, which solves the problem of false detection caused by the placement of the smart device next to it, and improves the accuracy of recycling detection and the reliability of valuation.
Patent Information
- Application Number
- CN202110359322.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-04-02
- Publication Date
- 2024-09-17
- Estimated Expiration
- 2041-04-02
AI Technical Summary
During the recycling process of smart equipment, when the smart equipment is placed close to the inspection warehouse, it is easy to cause interference and false detection in the appearance inspection, affecting the accuracy of the recycling estimate.
By obtaining the appearance image of the smart device, determine the edge contour, select the device contour as the selected contour, determine the relative placement of the device in the detection chamber based on the contour, and instruct the placement to adjust when the adjustment conditions are met to prevent false detection.
It effectively prevents false detections caused by intelligent equipment being too close to the edge of the detection bin, improves the accuracy of recycling detection and the overall loss assessment of the equipment, and ensures the reliability of recycling valuation.
Smart Images

Figure CN113034531B
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of electronic products, and in particular to a method and a device for detecting device placement. Background Art
[0002] With the development of electronic product technology, various smart devices have emerged one after another, such as smartphones, laptops, and tablets. At present, with the rapid development of economy and technology, the popularity and replacement of smart devices are also getting faster and faster. Taking smartphones as an example, the advent of the 5G era has accelerated the replacement of smartphones. In the process of iteration of smart devices, effective recycling is one of the effective means of utilizing the residual value of smart devices, which can reduce chemical pollution to the environment and reduce waste.
[0003] In the recycling process of mobile phones, the overall loss of smart devices has a great impact on the recycling valuation of smart devices. Generally, the overall loss is determined by observing the appearance loss of smart devices, such as scratches, paint peeling, or external explosions, to evaluate the overall loss of smart devices, providing some effective reference for the recycling valuation of smart devices. In smart device recycling detection, such as recycling detection terminals for smart device recycling applications, smart devices are placed on the detection platform of the detection bin of the recycling detection terminal, and the camera of the recycling detection terminal completes the shooting of the smart devices.
[0004] However, when inspection equipment such as recycling inspection terminals are photographing smart devices, if the smart devices are placed close to the inspection bin, it is easy to interfere with the appearance inspection of the smart devices, resulting in false detection. Summary of the invention
[0005] Based on this, it is necessary to provide a device placement detection method and apparatus for detecting smart devices such as recycling detection terminals. When the smart devices are photographed, if the smart devices are placed close to the detection bin, it is easy to interfere with the appearance detection of the smart devices, resulting in false detection.
[0006] A device placement detection method comprises the steps of:
[0007] Obtain an appearance image of the smart device to be tested;
[0008] determining an edge contour of the appearance image according to the appearance image;
[0009] Selecting the contour of the smart device to be tested from the edge contours as the selected contour;
[0010] The relative placement position of the smart device to be tested in the detection chamber is determined according to the selected contour, and when the relative placement position meets the adjustment condition, an instruction is given to adjust the placement position of the smart device to be tested.
[0011] The above-mentioned device placement detection method, after acquiring the appearance image of the smart device to be tested, determines the edge contour of the appearance image based on the appearance image, and selects the contour of the smart device to be tested from the edge contour as the selected contour. Finally, the relative placement position of the smart device to be tested in the detection bin is determined based on the selected contour, and when the relative placement position meets the adjustment conditions, an instruction is given to adjust the placement position of the smart device to be tested. Based on this, by performing appearance detection on the smart device to be tested, the acquired appearance image is subjected to corresponding image processing, the placement position of the smart device to be tested in the detection bin is determined, and it is judged whether the smart device to be tested is too close to the edge of the detection bin based on the adjustment conditions, and the corresponding personnel or corresponding devices are promptly instructed to adjust the placement position of the smart device to be tested, so as to prevent misdetection of the smart device to be tested.
[0012] In one of the embodiments, before the process of determining the edge contour of the appearance image according to the appearance image, the process further includes the steps of:
[0013] Perform image preprocessing on the appearance image.
[0014] In one embodiment, the process of performing image preprocessing on the appearance image comprises the steps of:
[0015] Performing image filtering processing on the appearance image to obtain a filtering processing result;
[0016] The filtering result is converted into a color space to obtain a grayscale image as an image preprocessing result.
[0017] In one embodiment, the process of determining the edge contour of the appearance image according to the appearance image comprises the steps of:
[0018] Determining an adaptive threshold of an edge detection algorithm based on the appearance image;
[0019] Determine the edge contours of the appearance image based on an adaptive threshold.
[0020] In one embodiment, selecting the contour of the smart device to be tested from the edge contour as a process of selecting the contour includes the steps of:
[0021] The contours with a value greater than the set contour threshold among the edge contours are selected as contours.
[0022] In one embodiment, the process of determining the relative placement position of the smart device to be tested in the testing chamber according to the selected contour includes the steps of:
[0023] Determine the center point of the selected contour;
[0024] Determine the relative placement of the smart device to be tested in the testing chamber based on the center point.
[0025] In one embodiment, the process of determining the center point of the selected contour is as follows:
[0026]
[0027] Among them, Rect.x represents the horizontal coordinate of the upper left corner of the selected contour, Rect.y represents the vertical coordinate of the upper left corner of the selected contour, Rect.width represents the width of the selected contour, and Rect.height represents the height of the selected contour;
[0028] Among them, the process of relative placement position satisfying the adjustment conditions is as follows:
[0029]
[0030] Among them, thH is the height threshold, thW is the width threshold, and thH=Rect.height / 2+1, thW=Rect.width / 2+1; y2h is the coordinate value relative to y in the vertical direction, x2w is the coordinate value relative to x in the horizontal direction, and y2h=Hy, x2w=Wx.
[0031] A device for detecting equipment placement, comprising:
[0032] An image acquisition module, used to acquire an appearance image of the smart device to be tested;
[0033] A contour determination module, used for determining an edge contour of an appearance image according to the appearance image;
[0034] A contour selection module, used for selecting the contour of the smart device to be tested from the edge contour as the selected contour;
[0035] The contour recognition module is used to determine the relative placement position of the smart device to be tested in the detection chamber according to the selected contour, and to instruct to adjust the placement position of the smart device to be tested when the relative placement position meets the adjustment conditions.
[0036] The above-mentioned device placement detection device, after acquiring the appearance image of the smart device to be tested, determines the edge contour of the appearance image based on the appearance image, and selects the contour of the smart device to be tested from the edge contour as the selected contour. Finally, the relative placement position of the smart device to be tested in the detection bin is determined based on the selected contour, and when the relative placement position meets the adjustment conditions, an instruction is given to adjust the placement position of the smart device to be tested. Based on this, by performing appearance detection on the smart device to be tested, the acquired appearance image is subjected to corresponding image processing, the placement position of the smart device to be tested in the detection bin is determined, and it is determined whether the smart device to be tested is too close to the edge of the detection bin based on the adjustment conditions, and the corresponding personnel or corresponding devices are promptly instructed to adjust the placement position of the smart device to be tested, so as to prevent misdetection of the smart device to be tested.
[0037] A computer storage medium stores computer instructions, which, when executed by a processor, implement the device placement detection method of any of the above embodiments.
[0038] After acquiring the appearance image of the smart device to be tested, the above-mentioned computer storage medium determines the edge contour of the appearance image according to the appearance image, and selects the contour of the smart device to be tested from the edge contour as the selected contour. Finally, the relative placement position of the smart device to be tested in the detection bin is determined according to the selected contour, and when the relative placement position meets the adjustment condition, an instruction is given to adjust the placement position of the smart device to be tested. Based on this, by performing appearance inspection on the smart device to be tested, the acquired appearance image is subjected to corresponding image processing, the placement position of the smart device to be tested in the detection bin is determined, and it is judged whether the smart device to be tested is too close to the edge of the detection bin according to the adjustment condition, and the corresponding personnel or corresponding devices are promptly instructed to adjust the placement position of the smart device to be tested, so as to prevent misdetection of the smart device to be tested.
[0039] A computer device includes a memory, a processor, and a computer program stored in the memory and executable on the processor. When the processor executes the program, the device placement detection method of any of the above embodiments is implemented.
[0040] After acquiring the appearance image of the smart device to be tested, the above-mentioned computer device determines the edge contour of the appearance image based on the appearance image, and selects the contour of the smart device to be tested from the edge contour as the selected contour. Finally, the relative placement position of the smart device to be tested in the detection bin is determined based on the selected contour, and when the relative placement position meets the adjustment condition, an instruction is given to adjust the placement position of the smart device to be tested. Based on this, by performing appearance inspection on the smart device to be tested, the acquired appearance image is subjected to corresponding image processing, the placement position of the smart device to be tested in the detection bin is determined, and it is determined whether the smart device to be tested is too close to the edge of the detection bin based on the adjustment condition, and the corresponding personnel or corresponding devices are promptly instructed to adjust the placement position of the smart device to be tested, so as to prevent misdetection of the smart device to be tested. BRIEF DESCRIPTION OF THE DRAWINGS
[0041] Figure 1 A flow chart of a device placement detection method according to an embodiment;
[0042] Figure 2 A flow chart of a device placement detection method according to another embodiment;
[0043] Figure 3 A flow chart of a device placement detection method according to another embodiment;
[0044] Figure 4 It is a module structure diagram of an equipment placement detection device according to one embodiment;
[0045] Figure 5 A schematic diagram of the internal structure of a computer according to an embodiment. DETAILED DESCRIPTION
[0046] In order to better understand the purpose, technical solution and technical effect of the present invention, the present invention is further explained below in conjunction with the accompanying drawings and embodiments. At the same time, it is stated that the embodiments described below are only used to explain the present invention and are not used to limit the present invention.
[0047] In the field of smart device recycling detection, such as recycling detection terminals and other recycling applications for smart devices to be tested, the smart device to be tested is placed on a detection platform at the bottom of the detection bin of the recycling detection terminal, and the distance from the side wall of the inner surface of the detection bin is affected by the placement position. At the same time, the detection platform can dynamically drive the smart device to be tested and adjust the placement position of the smart device to be tested, such as rotation. Based on this, an embodiment of the present invention provides a device placement detection method.
[0048] Figure 1 FIG. 1 is a flow chart of a device placement detection method according to an embodiment of the present invention. Figure 1 As shown, a device placement detection method in one embodiment includes steps S100 to S103:
[0049] S100, obtaining an appearance image of the smart device to be tested;
[0050] The photographing device in the inspection chamber obtains the appearance image of the smart device under test by photographing the smart device under test, and provides the appearance image including the photographing background and the front of the smart device under test.
[0051] After determining the appearance image of the smart device to be tested, the edge contour of the appearance image is determined by selecting the area of the appearance image, so as to facilitate the recognition of the information of the appearance image, reduce the processing amount and improve the accuracy of subsequent processing.
[0052] In one embodiment, Figure 2 FIG. 1 is a flow chart of a device placement detection method in another embodiment, as shown in FIG. Figure 2 As shown, before the process of determining the edge contour of the appearance image according to the appearance image in step S101, step S200 is also included:
[0053] S200, performing image preprocessing on the appearance image.
[0054] By preprocessing the appearance image, the recognition rate of subsequent image processing is improved and the amount of data processing is reduced. The image preprocessing includes filtering, binarization or resolution conversion.
[0055] In one embodiment, Figure 3 FIG. 1 is a flow chart of a device placement detection method according to another embodiment of the present invention. Figure 3 As shown, the process of performing image preprocessing on the appearance image in step S200 includes steps S300 and S301:
[0056] S300, performing image filtering processing on the appearance image to obtain a filtering processing result;
[0057] Through image filtering, the white noise and corresponding interference of the appearance image are eliminated, and the accuracy of the filtering result in subsequent processing is improved. As a preferred implementation, the image filtering process uses Gaussian filtering to perform Gaussian filtering on the appearance image to remove white noise. The specific process is as follows:
[0058]
[0059] Wherein, j=1,2,...,H represents the horizontal coordinate value relative to the origin of the upper left corner of the image, i=1,2,...,W represents the vertical coordinate value relative to the origin of the upper left corner of the image; H represents the height of X, W represents the width of X; w represents the length of the rectangular window, which is set to 3, and A represents the amplitude of the corresponding rectangular window, which is set to 16. X represents the appearance image. The rectangular window represents the template corresponding to the Gaussian filter, as shown in the following formula:
[0060]
[0061] S301, performing color space conversion on the filtering processing result to obtain a grayscale image as an image preprocessing result.
[0062] The filtering result is converted into a binary image by color space conversion, thereby obtaining a grayscale image as an image preprocessing result.
[0063] In one embodiment, the process of performing color space conversion on the filtering result to obtain a grayscale image as an image preprocessing result is as follows:
[0064] G1(j,i)=0.1140*X1 b (j,i)+0.5870*X1 g (j,i)+0.2989*X1 r (j,i)
[0065] Among them, X1 r Represents the color component of the R channel, X1 g Represents the color component of the G channel, X1 b Represents the color component of the B channel, and G1 represents the grayscale image.
[0066] S101, determining an edge contour of an appearance image according to the appearance image;
[0067] By determining the edge contour, it is convenient to determine the distance between the smart device to be tested and the side wall of the inner surface of the detection chamber. Figure 2 As shown, the process of determining the edge contour of the appearance image according to the appearance image in step S101 includes steps S201 and S202:
[0068] S201, determining an adaptive threshold of an edge detection algorithm according to the appearance image;
[0069] In one embodiment, the edge detection algorithm includes a Sobel algorithm, a Prewitt algorithm, a Roberts algorithm, a Canny algorithm, or a Marr-Hildreth algorithm.
[0070] As a preferred implementation, the Canny algorithm is selected as the edge detection algorithm. Based on this, the process of determining the adaptive thresholds t1 and t2 of the Canny algorithm according to the appearance image is as follows:
[0071] First, calculate the appearance image, preferably calculate the gradient value G of the grayscale image in the horizontal direction x And the vertical gradient value G y , as follows:
[0072]
[0073] G x The convolution kernel K x , G y The convolution kernel K y They are:
[0074]
[0075]
[0076] Then, calculate G x and G y Generated gradient image G d The maximum value gv of the sum of the pixel values at the same position is as follows:
[0077]
[0078] Next, calculate G d The histogram H d , the maximum value of the histogram Hsize = min(gv,255).
[0079] Next, traverse the histogram H d Calculate the sum hv. When hv is greater than the threshold t, stop the sum operation and record the current index value idx, t=H*W*0.77.
[0080] Finally, calculate t1 and t2 as follows:
[0081]
[0082]
[0083] S202, determining an edge contour of the appearance image according to an adaptive threshold.
[0084] In one of the embodiments, the edge contour of the appearance image is determined based on the determined Canny algorithm in combination with the adaptive thresholds t1 and t2.
[0085] S102, selecting a contour of the smart device to be tested from the edge contours as a selected contour;
[0086] After determining the edge contour, the edge contour needs to be selected so that the selected contour best fits the actual placement state of the smart device to be tested. Figure 2 As shown, in step S102, the contour of the smart device to be tested is selected from the edge contour, as a process of selecting the contour, including step S203:
[0087] S203: taking the contours in the edge contours that are larger than the set contour threshold as the selected contours.
[0088] By setting the contour threshold, the edge contour is selected in size, and the larger contour is selected as the selected contour, which further reduces the probability of false detection.
[0089] In one embodiment, the process of selecting the contour in the edge contours that is larger than the set contour threshold as the selected contour in step S203 includes the steps of: adjusting the set contour threshold so that the selected contour is the largest contour in the edge contours.
[0090] The contour threshold is set by dynamic adjustment, and multiple contours in the edge contour are iteratively compared to determine the maximum contour as the selected contour.
[0091] S103, determining the relative placement position of the smart device to be tested in the testing chamber according to the selected contour, and instructing to adjust the placement position of the smart device to be tested when the relative placement position meets the adjustment condition.
[0092] The selected contour may be determined to determine the distance between the edge of the selected contour and the side wall of the inner surface of the detection chamber, so as to determine the relative placement position of the smart device to be tested in the detection chamber. The adjustment condition is used to characterize that the distance between the edge of the contour and the side wall of the inner surface of the detection chamber is less than the set distance, and the side wall will interfere with the appearance detection of the smart device to be tested.
[0093] In one embodiment, if Figure 2 As shown, the process of determining the relative placement position of the smart device to be tested in the detection chamber according to the selected contour in step S103 includes steps S204 and S205:
[0094] S204, determining the center point of the selected contour;
[0095] S205: Determine the relative placement position of the smart device to be tested in the testing chamber according to the center point.
[0096] In one embodiment, the process of determining the center point of the selected contour in step S204 is as follows:
[0097]
[0098] Among them, Rect.x represents the horizontal coordinate of the upper left corner of the selected contour, Rect.y represents the vertical coordinate of the upper left corner of the selected contour, Rect.width represents the width of the selected contour, and Rect.height represents the height of the selected contour;
[0099] Among them, the process of relative placement position satisfying the adjustment conditions is as follows:
[0100]
[0101] Among them, thH is the height threshold, thW is the width threshold, and thH=Rect.height / 2+1, thW=Rect.width / 2+1; y2h is the coordinate value relative to y in the vertical direction, x2w is the coordinate value relative to x in the horizontal direction, and y2h=Hy, x2w=Wx.
[0102] In one of the embodiments, y≤thH represents that the smart device to be tested is placed on the top of the detection bin, y2h≤thH represents that the smart device to be tested is placed on the bottom of the detection bin, x≤thW represents that the smart device to be tested is placed on the left side of the detection bin, and x2w≤thW represents that the smart device to be tested is placed on the right side of the detection bin.
[0103] The selected contour indicates that the placement of the corresponding smart device to be tested needs to be adjusted. In one embodiment, in the recycling detection terminal, after determining the selected contour, the placement status flag of the corresponding smart device to be tested is set to 1, and the detection platform is controlled to rotate left and right to re-place the smart device to be tested.
[0104] The device placement detection method of any of the above-mentioned embodiments, after acquiring the appearance image of the smart device to be tested, determines the edge contour of the appearance image based on the appearance image, and selects the contour of the smart device to be tested from the edge contour as the selected contour. Finally, the relative placement position of the smart device to be tested in the detection bin is determined based on the selected contour, and when the relative placement position meets the adjustment condition, an instruction is given to adjust the placement position of the smart device to be tested. Based on this, by performing appearance detection on the smart device to be tested, corresponding image processing is performed on the acquired appearance image, the placement position of the smart device to be tested in the detection bin is determined, and it is judged whether the smart device to be tested is too close to the edge of the detection bin based on the adjustment condition, and the corresponding personnel or corresponding devices are promptly instructed to adjust the placement position of the smart device to be tested, so as to prevent misdetection of the smart device to be tested.
[0105] The embodiment of the present invention also provides a device for detecting the placement of equipment.
[0106] Figure 4 FIG. 1 is a module structure diagram of an equipment placement detection device according to an embodiment of the present invention. Figure 4 As shown, an equipment placement detection device in one embodiment includes modules 100, 101, 102 and 103:
[0107] An image acquisition module 100 is used to acquire an appearance image of the smart device to be tested;
[0108] The contour determination module 101 is used to determine the edge contour of the appearance image according to the appearance image;
[0109] The contour selection module 102 is used to select the contour of the smart device to be tested from the edge contour as the selected contour;
[0110] The contour recognition module 103 is used to determine the relative placement position of the smart device to be tested in the detection chamber according to the selected contour, and to instruct to adjust the placement position of the smart device to be tested when the relative placement position meets the adjustment condition.
[0111] The above-mentioned device placement detection device, after acquiring the appearance image of the smart device to be tested, determines the edge contour of the appearance image based on the appearance image, and selects the contour of the smart device to be tested from the edge contour as the selected contour. Finally, the relative placement position of the smart device to be tested in the detection bin is determined based on the selected contour, and when the relative placement position meets the adjustment conditions, an instruction is given to adjust the placement position of the smart device to be tested. Based on this, by performing appearance detection on the smart device to be tested, the acquired appearance image is subjected to corresponding image processing, the placement position of the smart device to be tested in the detection bin is determined, and it is determined whether the smart device to be tested is too close to the edge of the detection bin based on the adjustment conditions, and the corresponding personnel or corresponding devices are promptly instructed to adjust the placement position of the smart device to be tested, so as to prevent misdetection of the smart device to be tested.
[0112] An embodiment of the present invention further provides a computer storage medium on which computer instructions are stored. When the instructions are executed by a processor, the device placement detection method of any of the above embodiments is implemented.
[0113] Those skilled in the art can understand that all or part of the processes in the above-mentioned embodiment methods can be completed by instructing the relevant hardware through a computer program, and the computer program can be stored in a non-volatile computer-readable storage medium. When the computer program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, any reference to memory, storage, database or other media used in the embodiments provided in this application can include non-volatile and / or volatile memory. Non-volatile memory may include read-only memory (ROM), programmable ROM (PROM), electrically programmable ROM (EPROM), electrically erasable programmable ROM (EEPROM) or flash memory. Volatile memory may include random access memory (RAM) or external cache memory. As an illustration and not limitation, RAM is available in many forms, such as static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), double data rate SDRAM (DDRSDRAM), enhanced SDRAM (ESDRAM), synchronous link (Synchlink) DRAM (SLDRAM), memory bus (Rambus) direct RAM (RDRAM), direct memory bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM).
[0114] Alternatively, if the above-mentioned integrated unit of the present invention is implemented in the form of a software function module and sold or used as an independent product, it can also be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the embodiment of the present invention can be essentially or partly reflected in the form of a software product that contributes to the relevant technology. The computer software product is stored in a storage medium, including a number of instructions for a computer device (which can be a personal computer, terminal, or network device, etc.) to execute all or part of the methods of each embodiment of the present invention. The aforementioned storage medium includes: various media that can store program codes, such as mobile storage devices, RAM, ROM, magnetic disks or optical disks.
[0115] Corresponding to the above-mentioned computer storage medium, in one embodiment, a computer device is also provided, which includes a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein when the processor executes the program, any one of the device placement detection methods in the above-mentioned embodiments is implemented.
[0116] The computer device may be a terminal, and its internal structure diagram may be as follows: Figure 5 As shown. The computer device includes a processor, a memory, a network interface, a display screen and an input device connected via a system bus. Among them, the processor of the computer device is used to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system and a computer program. The internal memory provides an environment for the operation of the operating system and the computer program in the non-volatile storage medium. The network interface of the computer device is used to communicate with an external terminal via a network connection. When the computer program is executed by the processor, a device placement detection method is implemented. The display screen of the computer device can be a liquid crystal display screen or an electronic ink display screen, and the input device of the computer device can be a touch layer covering the display screen, or a button, trackball or touchpad set on the computer device casing, or an external keyboard, touchpad or mouse, etc.
[0117] After acquiring the appearance image of the smart device to be tested, the above-mentioned computer device determines the edge contour of the appearance image based on the appearance image, and selects the contour of the smart device to be tested from the edge contour as the selected contour. Finally, the relative placement position of the smart device to be tested in the detection bin is determined based on the selected contour, and when the relative placement position meets the adjustment condition, an instruction is given to adjust the placement position of the smart device to be tested. Based on this, by performing appearance inspection on the smart device to be tested, the acquired appearance image is subjected to corresponding image processing, the placement position of the smart device to be tested in the detection bin is determined, and it is determined whether the smart device to be tested is too close to the edge of the detection bin based on the adjustment condition, and the corresponding personnel or corresponding devices are promptly instructed to adjust the placement position of the smart device to be tested, so as to prevent misdetection of the smart device to be tested.
[0118] The technical features of the above embodiments may be combined arbitrarily. To make the description concise, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.
[0119] The above embodiments only express several implementation methods of the present invention, and the descriptions thereof are relatively specific and detailed, but they cannot be understood as limiting the scope of the invention patent. It should be pointed out that, for those of ordinary skill in the art, several variations and improvements can be made without departing from the concept of the present invention, and these all belong to the protection scope of the present invention. Therefore, the protection scope of the patent of the present invention shall be subject to the attached claims.
Claims
1. A device placement detection method, characterized in that: Includes steps: Obtain an appearance image of the smart device to be tested; Performing image preprocessing on the appearance image, including the steps of: performing image filtering processing on the appearance image to obtain a filtering processing result; Performing color space conversion on the filtering processing result to obtain a grayscale image as an image preprocessing result; determining an edge contour of the appearance image according to the appearance image; Selecting the contour of the smart device to be tested from the edge contours as the selected contour; The relative placement position of the smart device to be tested in the detection chamber is determined according to the selected contour, and when the relative placement position meets the adjustment condition, an instruction is given to adjust the placement position of the smart device to be tested, wherein the adjustment condition is that the distance between the contour edge and the side wall of the inner surface of the detection chamber is less than a set distance.
2. The device placement detection method according to claim 1, characterized in that: The process of determining the edge contour of the appearance image according to the appearance image comprises the steps of: Determining an adaptive threshold of an edge detection algorithm based on the appearance image; An edge contour of the appearance image is determined according to the adaptive threshold.
3. The device placement detection method according to claim 1, characterized in that: The process of selecting the contour of the smart device to be tested from the edge contour as the selected contour comprises the steps of: The contours of the edge contours that are greater than a set contour threshold are taken as the selected contours.
4. The device placement detection method according to any one of claims 1 to 3, characterized in that: The process of determining the relative placement position of the intelligent device to be tested in the detection bin according to the selected contour comprises the steps of: determining a center point of the selected contour; The relative placement position of the intelligent device to be tested in the detection chamber is determined according to the central point.
5. The device placement detection method according to claim 4, characterized in that: The process of determining the center point of the selected contour is as follows: in, represents the horizontal coordinate of the upper left corner of the selected contour, Represents the vertical coordinate of the upper left corner of the selected contour, represents the width of the selected contour, represents the height of the selected contour; The process in which the relative placement position satisfies the adjustment condition is as follows: in, is the height threshold, is the width threshold, and , ; is the vertical direction relative to The coordinate value of is the horizontal direction relative to The coordinate values of , .
6. An equipment placement detection device, characterized in that: include: An image acquisition module, used to acquire an appearance image of the smart device to be tested; A contour determination module, used to determine the edge contour of the appearance image according to the appearance image; A contour selection module, used for selecting the contour of the intelligent device to be tested from the edge contour as a selected contour; A contour recognition module is used to determine the relative placement position of the smart device to be tested in the detection chamber according to the selected contour, and to instruct to adjust the placement position of the smart device to be tested when the relative placement position meets the adjustment condition, wherein the adjustment condition is that the distance between the contour edge and the side wall of the inner surface of the detection chamber is less than a set distance.
7. A computer storage medium having computer instructions stored thereon, characterized in that: When the computer instructions are executed by the processor, the device placement detection method as described in any one of claims 1 to 5 is implemented.
8. A computer device comprising a memory, a processor and a computer program stored in the memory and executable on the processor, characterized in that: When the processor executes the program, the device placement detection method as described in any one of claims 1 to 5 is implemented.
