Movatterモバイル変換


[0]ホーム

URL:


CN113034530A - Mobile phone placement detection method and device - Google Patents

Mobile phone placement detection method and device
Download PDF

Info

Publication number
CN113034530A
CN113034530ACN202110359215.2ACN202110359215ACN113034530ACN 113034530 ACN113034530 ACN 113034530ACN 202110359215 ACN202110359215 ACN 202110359215ACN 113034530 ACN113034530 ACN 113034530A
Authority
CN
China
Prior art keywords
contour
mobile phone
image
tested
determining
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN202110359215.2A
Other languages
Chinese (zh)
Other versions
CN113034530B (en
Inventor
田寨兴
余卫宇
廖伟权
刘嘉
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Guangzhou Epbox Information Technology Co ltd
Original Assignee
Guangzhou Epbox Information Technology Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Guangzhou Epbox Information Technology Co ltdfiledCriticalGuangzhou Epbox Information Technology Co ltd
Priority to CN202110359215.2ApriorityCriticalpatent/CN113034530B/en
Publication of CN113034530ApublicationCriticalpatent/CN113034530A/en
Application grantedgrantedCritical
Publication of CN113034530BpublicationCriticalpatent/CN113034530B/en
Activelegal-statusCriticalCurrent
Anticipated expirationlegal-statusCritical

Links

Images

Classifications

Landscapes

Abstract

The invention relates to a mobile phone placement detection method and device, which are used for determining a contour object set meeting a contour object threshold value in a contour mask image according to a preset contour object threshold value after acquiring a front image of a mobile phone to be detected and determining the contour mask image of the front image. And finally, determining the contour object meeting the coordinate threshold range in the contour object set, and using the contour object as a prompt contour object for prompting the corresponding to-be-tested mobile phone to be placed to be adjusted. Based on the method, the appearance of the mobile phone to be tested is detected, the obtained front image is used for carrying out corresponding image processing, the placing posture of the mobile phone to be tested is judged, whether the placing of the mobile phone to be tested is standard or not is determined, the mobile phone to be tested is prompted to be placed again when the placing is not standard, appearance loss caused by irregular placing of the back face of the mobile phone or a rear camera and the like is prevented, and the recycling value of the mobile phone to be tested is guaranteed.

Description

Mobile phone placement detection method and device
Technical Field
The invention relates to the technical field of electronic products, in particular to a method and a device for detecting placement of a mobile phone.
Background
With the development of electronic product technology, various intelligent devices such as smart phones, notebook computers, tablet computers, and the like are developed. At present, along with the rapid development of economy and technology, the popularization and the updating speed of intelligent equipment are also faster and faster. Taking a smart phone as an example, the coming of the 5G era accelerates the generation change of the smart phone. In the iterative process of the intelligent equipment, effective recovery is one of effective utilization means of the residual value of the intelligent equipment, and the chemical pollution to the environment and the waste can be reduced.
In the process of recovering the mobile phone, the overall loss degree of the mobile phone has a great influence on the recovery evaluation of the mobile phone. Generally, the overall loss of the mobile phone is determined mainly by observing the appearance loss of the mobile phone, such as the appearance loss of the categories of scratches, paint falling or explosion, and the like, so as to evaluate the overall loss of the mobile phone, and provide a part of effective reference for the recycling evaluation of the mobile phone. In the process of recycling the mobile phone, due to the fact that the mobile phone is provided with the rear camera, the mobile phone is prone to being worn out in the appearance and affecting the recycling value of the mobile phone when the mobile phone is placed irregularly in the recycling process. However, the mobile phone detection amount in the recycling process is large, and the mobile phone belongs to small-sized equipment, so that whether the mobile phone is placed in a standard mode or not is difficult to determine by naked eyes of related personnel, and the mobile phone is prone to appearance loss due to irregular placement.
Disclosure of Invention
Therefore, it is necessary to provide a method and an apparatus for detecting placement of a mobile phone, which are used for solving the problems that the mobile phone detection amount is large in the recycling process, the mobile phone belongs to small-sized equipment, whether the mobile phone placement is standard or not is difficult to determine by naked eyes of related personnel, and the mobile phone is prone to appearance loss due to irregular placement.
A mobile phone placement detection method comprises the following steps:
acquiring a front image of a mobile phone to be tested, and determining a contour mask image of the front image;
determining a contour object set meeting a contour object threshold value in a contour mask image according to a preset contour object threshold value; wherein the contour object threshold comprises a length-width ratio threshold range and an area threshold range;
determining the contour object meeting the coordinate threshold range in the contour object set as a prompt contour object; the prompt outline object is used for prompting that the placement of the mobile phone to be tested corresponding to the prompt outline object needs to be adjusted.
According to the mobile phone placement detection method, after the front image of the mobile phone to be detected is obtained and the outline mask image of the front image is determined, the outline object set meeting the outline object threshold value in the outline mask image is determined according to the preset outline object threshold value. And finally, determining the contour object meeting the coordinate threshold range in the contour object set, and using the contour object as a prompt contour object for prompting the corresponding to-be-tested mobile phone to be placed to be adjusted. Based on the method, the appearance of the mobile phone to be tested is detected, the obtained front image is used for carrying out corresponding image processing, the placing posture of the mobile phone to be tested is judged, whether the placing of the mobile phone to be tested is standard or not is determined, the mobile phone to be tested is prompted to be placed again when the placing is not standard, appearance loss caused by irregular placing of the back face of the mobile phone or a rear camera and the like is prevented, and the recycling value of the mobile phone to be tested is guaranteed.
In one embodiment, the process of determining a profile mask image for a front image includes the steps of:
filtering the front image to obtain a filtering result;
converting the filtering processing result into a gray image, and performing self-adaptive brightness adjustment processing on the gray image to obtain an adjustment processing result;
carrying out binarization on the adjustment processing result to obtain a binarized image;
performing morphological expansion operation on the binary image, and connecting small areas with broken lines to obtain a connection result;
and searching the contour information in the connection result, and drawing the contour information in an image with the same size and type as the connection result to obtain a contour mask image.
In one embodiment, the process of performing filtering processing on the front image to obtain a filtering processing result includes the steps of:
performing Gaussian filtering processing on the front image;
and performing mean shift filtering on the Gaussian filtering result to obtain a filtering result.
In one embodiment, the self-adaptive brightness adjustment process is performed on the grayscale image, as follows:
Y(i,j)=β(i,j)*X1(i,j)+α(i,j)*X2(i,j)
wherein X1(i, j) + X2(i, j) ═ 255, X1(i, j) ∈ [0,255], X2(i, j) ∈ [0,255], i, j represent pixel coordinates in the appearance image of the smart device, that is, the pixel position of the ith row and the jth column, Y (i, j) represents the final pixel value of the ith row and the jth column after adaptive brightness adjustment, Y (i, j) ∈ [0,255], α, β are adaptive brightness adjustment factors, and α, β satisfy the following formula:
Figure BDA0003004822920000031
wherein α (i, j) + β (i.j) is 1 and α (i, j) is e (0,1), β (i, j) is e (0, 1);
in addition, X1 ═ G, X2 ═ 255-G, and Y is assigned to G; wherein G is the result of the adjustment process.
In one embodiment, the process of binarizing the adjustment processing result includes the steps of:
and carrying out binarization operation on the adjustment processing result according to an Otsu threshold value method.
In one embodiment, the process of determining the set of contour objects in the contour mask image that satisfy the contour object threshold according to the preset contour object threshold is as follows:
Figure BDA0003004822920000032
wherein the length-width ratio threshold range of the contour object is [ T ]ratio1,Tratio2) The area threshold range of the contour object is [ T ]area1,Tarea2](ii) a The upper left corner coordinate threshold of the contour object is TxAnd TyWherein T isxThe corresponding threshold range is (0, T)x1]∪[Tx2,Mcols,),TyThe corresponding threshold range is (0, T)y1]。
In one embodiment, the threshold range of coordinates is (0, T)x1]。
A mobile phone placement detection device comprises the following steps:
the image determining module is used for acquiring a front image of the mobile phone to be tested and determining a contour mask image of the front image;
the set acquisition module is used for determining a contour object set meeting a contour object threshold value in the contour mask image according to a preset contour object threshold value; wherein the contour object threshold comprises a length-width ratio threshold range and an area threshold range;
the object detection module is used for determining the contour objects meeting the coordinate threshold range in the contour object set as prompt contour objects; the prompt outline object is used for prompting that the placement of the mobile phone to be tested corresponding to the prompt outline object needs to be adjusted.
According to the mobile phone placement detection device, after the front image of the mobile phone to be detected is obtained and the outline mask image of the front image is determined, the outline object set meeting the outline object threshold value in the outline mask image is determined according to the preset outline object threshold value. And finally, determining the contour object meeting the coordinate threshold range in the contour object set, and using the contour object as a prompt contour object for prompting the corresponding to-be-tested mobile phone to be placed to be adjusted. Based on the method, the appearance of the mobile phone to be tested is detected, the obtained front image is used for carrying out corresponding image processing, the placing posture of the mobile phone to be tested is judged, whether the placing of the mobile phone to be tested is standard or not is determined, the mobile phone to be tested is prompted to be placed again when the placing is not standard, appearance loss caused by irregular placing of the back face of the mobile phone or a rear camera and the like is prevented, and the recycling value of the mobile phone to be tested is guaranteed.
A computer storage medium having computer instructions stored thereon, the computer instructions when executed by a processor implement the method for detecting placement of a mobile phone according to any of the above embodiments.
After the front image of the mobile phone to be tested is obtained and the contour mask image of the front image is determined, the computer storage medium determines the contour object set meeting the contour object threshold in the contour mask image according to the preset contour object threshold. And finally, determining the contour object meeting the coordinate threshold range in the contour object set, and using the contour object as a prompt contour object for prompting the corresponding to-be-tested mobile phone to be placed to be adjusted. Based on the method, the appearance of the mobile phone to be tested is detected, the obtained front image is used for carrying out corresponding image processing, the placing posture of the mobile phone to be tested is judged, whether the placing of the mobile phone to be tested is standard or not is determined, the mobile phone to be tested is prompted to be placed again when the placing is not standard, appearance loss caused by irregular placing of the back face of the mobile phone or a rear camera and the like is prevented, and the recycling value of the mobile phone to be tested is guaranteed.
A computer device comprises a memory, a processor and a computer program which is stored on the memory and can run on the processor, wherein when the processor executes the program, the mobile phone placement detection method of any one of the embodiments is realized.
After the front image of the mobile phone to be tested is obtained and the contour mask image of the front image is determined, the computer equipment determines the contour object set meeting the contour object threshold in the contour mask image according to the preset contour object threshold. And finally, determining the contour object meeting the coordinate threshold range in the contour object set, and using the contour object as a prompt contour object for prompting the corresponding to-be-tested mobile phone to be placed to be adjusted. Based on the method, the appearance of the mobile phone to be tested is detected, the obtained front image is used for carrying out corresponding image processing, the placing posture of the mobile phone to be tested is judged, whether the placing of the mobile phone to be tested is standard or not is determined, the mobile phone to be tested is prompted to be placed again when the placing is not standard, appearance loss caused by irregular placing of the back face of the mobile phone or a rear camera and the like is prevented, and the recycling value of the mobile phone to be tested is guaranteed.
Drawings
Fig. 1 is a flowchart of a mobile phone placement detection method according to an embodiment;
fig. 2 is a flowchart of a mobile phone placement detection method according to another embodiment;
fig. 3 is a flowchart of a mobile phone placement detection method according to yet another embodiment;
FIG. 4 is a block diagram of a mobile phone placement detection device according to an embodiment;
FIG. 5 is a schematic diagram of an internal structure of a computer according to an embodiment.
Detailed Description
For better understanding of the objects, technical solutions and effects of the present invention, the present invention will be further explained with reference to the accompanying drawings and examples. Meanwhile, the following described examples are only for explaining the present invention, and are not intended to limit the present invention.
In the field of mobile phone recovery detection, for example, in the recovery application of a recovery detection terminal to a mobile phone to be detected, the mobile phone to be detected is placed on a detection platform of a recovery bin of the recovery detection terminal, and the detection platform can dynamically drive the mobile phone to be detected to adjust the placement state, such as rotation, of the mobile phone to be detected. Based on the above, the embodiment of the invention provides a mobile phone placement detection method based on image shooting of recovery detection.
Fig. 1 is a flowchart of a method for detecting placement of a mobile phone according to an embodiment, and as shown in fig. 1, the method for detecting placement of a mobile phone according to an embodiment includes steps S100 to S102:
s100, acquiring a front image of the mobile phone to be tested, and determining a contour mask image of the front image;
the shooting equipment obtains a front image of the mobile phone to be detected by shooting the mobile phone to be detected. For example, when the mobile phone to be tested is recovered and tested through the recovery detection terminal, the camera of the recovery detection terminal provides a front image including a shooting background and the front of the mobile phone to be tested by shooting the mobile phone to be tested in the recovery bin.
After the front image of the mobile phone to be tested is determined, the outline mask image is determined by selecting the area of the front image, so that the information of the front image can be conveniently identified, the processing amount is reduced, and the accuracy of subsequent processing is improved.
In one embodiment, the outline mask image determined by the front image is used for screening the position of the front camera of the mobile phone to be tested, so that the position of the rear camera of the mobile phone to be tested is judged according to the subsequent steps, and whether the placement position of the mobile phone to be tested is standard or not is determined according to the position of the rear camera.
In one embodiment, fig. 2 is a flowchart of a mobile phone placement detection method according to another embodiment, and as shown in fig. 2, the process of determining the outline mask image of the front image in step S100 includes steps S200 to S204:
s200, filtering the front image to obtain a filtering result;
the corresponding noise and interference in the front image are eliminated through filtering processing, and the accuracy of the subsequent processing of the filtering processing result is improved.
In one embodiment, fig. 3 is a flowchart of a mobile phone placement detection method according to yet another embodiment, and as shown in fig. 3, the process of performing filtering processing on the front image in step S200 to obtain a filtering processing result includes step S300 and step S301:
s300, performing Gaussian filtering processing on the front image;
wherein, white noise interference in the front image is eliminated through Gaussian filtering processing. As one of the preferred embodiments, the front image is subjected to 5 × 5 gaussian filter processing, and the result of the gaussian filter processing is obtained.
S301, performing mean shift filtering on the Gaussian filtering result to obtain a filtering result.
And performing mean shift filtering processing on the Gaussian filtering processing result so as to facilitate subsequent image processing. As a preferred embodiment, the result of the mean shift filtering process is obtained by setting the sliding window of the mean shift filtering process to 11 × 11 and the color threshold to 25.
S201, converting the filtering processing result into a gray image, and performing self-adaptive brightness adjustment processing on the gray image to obtain an adjustment processing result;
the gray level image is subjected to self-adaptive brightness adjustment processing, images in darker areas and images in brighter areas are subjected to brightness adjustment and dimming processing, and areas which are too dark are brightened and areas which are too bright are dimmed.
In one embodiment, the self-adaptive brightness adjustment process is performed on the grayscale image in step S201, as follows:
Y(i,j)=β(i,j)*X1(i,j)+α(i,j)*X2(i,j)
wherein X1(i, j) + X2(i, j) ═ 255, X1(i, j) ∈ [0,255], X2(i, j) ∈ [0,255], i, j represent pixel coordinates in the appearance image of the smart device, that is, the pixel position of the ith row and the jth column, Y (i, j) represents the final pixel value of the ith row and the jth column after adaptive brightness adjustment, Y (i, j) ∈ [0,255], α, β are adaptive brightness adjustment factors, and α, β satisfy the following formula:
Figure BDA0003004822920000081
wherein α (i, j) + β (i.j) is 1 and α (i, j) is e (0,1), β (i, j) is e (0, 1);
in addition, X1 ═ G, X2 ═ 255-G, and Y is assigned to G; wherein G is the result of the adjustment process.
S202, binarizing the adjusting processing result to obtain a binarized image;
and obtaining a binary image by binarizing the adjustment processing result so as to extract information in the front image and increase the recognition rate in the subsequent image processing process.
In one embodiment, the process of binarizing the adjustment processing result in step S202 includes step S400:
and S400, performing binarization operation on the adjustment processing result according to an Otsu threshold value method.
And performing OTSU operation on the adjustment processing result to obtain a corresponding binary image.
S203, performing morphological expansion operation on the binary image, and connecting small areas with broken lines to obtain a connection result;
s204, searching the contour information in the connection result, and drawing the contour information in an image with the same size and type as the connection result to obtain a contour mask image.
S101, determining a contour object set meeting a contour object threshold value in a contour mask image according to a preset contour object threshold value; wherein the contour object threshold comprises a length-width ratio threshold range and an area threshold range;
and traversing all contour objects according to the determined contour mask image of the front image of the mobile phone to be detected, and determining a contour object set meeting a contour object threshold in the contour mask image.
In one embodiment, in step S101, a process of determining a set of contour objects satisfying a contour object threshold in the contour mask image according to a preset contour object threshold is as follows:
Figure BDA0003004822920000091
wherein the length-width ratio threshold range of the contour object is [ T ]ratio1,Tratio2) The area threshold range of the contour object is [ T ]area1,Tarea2](ii) a The upper left corner coordinate threshold of the contour object is TxAnd TyWherein T isxThe corresponding threshold range is (0, T)x1]∪[Tx2,Mcols,),TyThe corresponding threshold range is (0, T)y1]。
S102, determining the contour object meeting the coordinate threshold range in the contour object set as a prompt contour object; the prompt outline object is used for prompting that the placement of the mobile phone to be tested corresponding to the prompt outline object needs to be adjusted.
And determining a prompt outline object, wherein the prompt outline object has a corresponding relation with the mobile phone to be tested. The outline object of the mobile phone to be detected, the placement position of which needs to be adjusted, is the prompt outline object.
In one embodiment, the threshold range of coordinates is (0, T)x1]. As a preferred embodiment, the contour object whose coordinate x satisfies the coordinate threshold range in the contour object set is determined as the prompt contour object.
In one embodiment, in the recovery detection terminal, after the prompt outline object is determined, the placement state flag bit of the corresponding mobile phone to be detected is set to be 1, and the detection platform is controlled to rotate left and right to place the mobile phone to be detected again.
In the method for detecting placement of a mobile phone according to any of the embodiments, after the front image of the mobile phone to be detected is obtained and the contour mask image of the front image is determined, the contour object set meeting the contour object threshold in the contour mask image is determined according to the preset contour object threshold. And finally, determining the contour object meeting the coordinate threshold range in the contour object set, and using the contour object as a prompt contour object for prompting the corresponding to-be-tested mobile phone to be placed to be adjusted. Based on the method, the appearance of the mobile phone to be tested is detected, the obtained front image is used for carrying out corresponding image processing, the placing posture of the mobile phone to be tested is judged, whether the placing of the mobile phone to be tested is standard or not is determined, the mobile phone to be tested is prompted to be placed again when the placing is not standard, appearance loss caused by irregular placing of the back face of the mobile phone or a rear camera and the like is prevented, and the recycling value of the mobile phone to be tested is guaranteed.
The embodiment of the invention also provides a mobile phone placement detection device.
Fig. 4 is a block diagram of a mobile phone placement detection apparatus according to an embodiment, and as shown in fig. 4, the mobile phone placement detection apparatus according to an embodiment includes amodule 100, amodule 101, and a module 102:
theimage determining module 100 is configured to obtain a front image of the mobile phone to be tested, and determine a contour mask image of the front image;
theset acquisition module 101 is configured to determine, according to a preset contour object threshold, a contour object set that meets the contour object threshold in the contour mask image; wherein the contour object threshold comprises a length-width ratio threshold range and an area threshold range;
theobject detection module 102 is configured to determine a contour object satisfying a coordinate threshold range in the contour object set as a prompt contour object; the prompt outline object is used for prompting that the placement of the mobile phone to be tested corresponding to the prompt outline object needs to be adjusted.
According to the mobile phone placement detection device, after the front image of the mobile phone to be detected is obtained and the outline mask image of the front image is determined, the outline object set meeting the outline object threshold value in the outline mask image is determined according to the preset outline object threshold value. And finally, determining the contour object meeting the coordinate threshold range in the contour object set, and using the contour object as a prompt contour object for prompting the corresponding to-be-tested mobile phone to be placed to be adjusted. Based on the method, the appearance of the mobile phone to be tested is detected, the obtained front image is used for carrying out corresponding image processing, the placing posture of the mobile phone to be tested is judged, whether the placing of the mobile phone to be tested is standard or not is determined, the mobile phone to be tested is prompted to be placed again when the placing is not standard, appearance loss caused by irregular placing of the back face of the mobile phone or a rear camera and the like is prevented, and the recycling value of the mobile phone to be tested is guaranteed.
The embodiment of the invention also provides a computer storage medium, wherein computer instructions are stored on the computer storage medium, and when the instructions are executed by a processor, the method for detecting the placement of the mobile phone in any embodiment is realized.
It will be understood by those skilled in the art that all or part of the processes of the methods of the embodiments described above can be implemented by hardware instructions of a computer program, which can be stored in a non-volatile computer-readable storage medium, and when executed, can include the processes of the embodiments of the methods described above. Any reference to memory, storage, database, or other medium used in the embodiments provided herein may include non-volatile and/or volatile memory, among others. Non-volatile memory can include read-only memory (ROM), Programmable ROM (PROM), Electrically Programmable ROM (EPROM), Electrically Erasable Programmable ROM (EEPROM), or flash memory. Volatile memory can include Random Access Memory (RAM) or external cache memory. By way of illustration and not limitation, RAM is available in a variety of forms such as Static RAM (SRAM), Dynamic RAM (DRAM), Synchronous DRAM (SDRAM), Double Data Rate SDRAM (DDRSDRAM), Enhanced SDRAM (ESDRAM), Synchronous Link DRAM (SLDRAM), Rambus Direct RAM (RDRAM), direct bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM).
Alternatively, the integrated unit of the present invention may be stored in a computer-readable storage medium if it is implemented in the form of a software functional module and sold or used as a separate product. Based on such understanding, the technical solutions of the embodiments of the present invention may be embodied in the form of a software product, which is stored in a storage medium and includes instructions for causing a computer device (which may be a personal computer, a terminal, or a network device) to execute all or part of the methods of the embodiments of the present invention. And the aforementioned storage medium includes: a removable storage device, a RAM, a ROM, a magnetic or optical disk, or various other media that can store program code.
Corresponding to the computer storage medium, in one embodiment, a computer device is further provided, where the computer device includes a memory, a processor, and a computer program stored in the memory and executable on the processor, and when the processor executes the computer program, the method for detecting placement of a mobile phone is implemented in any one of the above embodiments.
The computer device may be a terminal, and its internal structure diagram may be as shown in fig. 5. The computer device includes a processor, a memory, a network interface, a display screen, and an input device connected by a system bus. Wherein the processor of the computer device is configured to provide computing and control capabilities. The memory of the computer device comprises a nonvolatile 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 an operating system and computer programs in the non-volatile storage medium. The network interface of the computer device is used for communicating with an external terminal through a network connection. The computer program is executed by a processor to realize a mobile phone placement detection method. The display screen of the computer equipment can be a liquid crystal display screen or an electronic ink display screen, and the input device of the computer equipment can be a touch layer covered on the display screen, a key, a track ball or a touch pad arranged on the shell of the computer equipment, an external keyboard, a touch pad or a mouse and the like
After the front image of the mobile phone to be tested is obtained and the contour mask image of the front image is determined, the computer equipment determines the contour object set meeting the contour object threshold in the contour mask image according to the preset contour object threshold. And finally, determining the contour object meeting the coordinate threshold range in the contour object set, and using the contour object as a prompt contour object for prompting the corresponding to-be-tested mobile phone to be placed to be adjusted. Based on the method, the appearance of the mobile phone to be tested is detected, the obtained front image is used for carrying out corresponding image processing, the placing posture of the mobile phone to be tested is judged, whether the placing of the mobile phone to be tested is standard or not is determined, the mobile phone to be tested is prompted to be placed again when the placing is not standard, appearance loss caused by irregular placing of the back face of the mobile phone or a rear camera and the like is prevented, and the recycling value of the mobile phone to be tested is guaranteed.
The technical features of the above embodiments can be arbitrarily combined, and for the sake of brevity, all possible combinations of the technical features in the above embodiments are not described, but should be considered as the scope of the present specification as long as there is no contradiction between the combinations of the technical features.
The above examples only show some embodiments of the present invention, and the description thereof is more specific and detailed, but not construed as limiting the scope of the invention. It should be noted that, for a person skilled in the art, several variations and modifications can be made without departing from the inventive concept, which falls within the scope of the present invention. Therefore, the protection scope of the present patent shall be subject to the appended claims.

Claims (10)

1. A mobile phone placement detection method is characterized by comprising the following steps:
acquiring a front image of a mobile phone to be tested, and determining a contour mask image of the front image;
determining a contour object set which meets a contour object threshold value in the contour mask image according to a preset contour object threshold value; wherein the contour object threshold comprises a length-to-width ratio threshold range and an area threshold range;
determining the contour object meeting the coordinate threshold range in the contour object set as a prompt contour object; the prompt outline object is used for prompting that the placement of the mobile phone to be tested corresponding to the prompt outline object needs to be adjusted.
2. The method for detecting placement of a mobile phone according to claim 1, wherein the process of determining the outline mask image of the front image comprises the steps of:
carrying out filtering processing on the front image to obtain a filtering processing result;
converting the filtering processing result into a gray image, and performing self-adaptive brightness adjustment processing on the gray image to obtain an adjustment processing result;
carrying out binarization on the adjustment processing result to obtain a binarized image;
performing morphological expansion operation on the binary image, and connecting small areas with broken lines to obtain a connection result;
and searching the contour information in the connection result, and drawing the contour information in an image with the same size and type as the connection result to obtain the contour mask image.
3. The mobile phone placement detection method according to claim 2, wherein the process of performing filtering processing on the front image to obtain a filtering processing result includes the steps of:
performing Gaussian filtering processing on the front image;
and performing mean shift filtering on the Gaussian filtering result to obtain a filtering result.
4. The method for detecting placement of a mobile phone according to claim 2, wherein the self-adaptive brightness adjustment process is performed on the grayscale image as follows:
Y(i,j)=β(i,j)*X1(i,j)+α(i,j)*X2(i,j)
wherein X1(i, j) + X2(i, j) ═ 255, X1(i, j) ∈ [0,255], X2(i, j) ∈ [0,255], i, j represent pixel coordinates in the appearance image of the smart device, that is, the pixel position of the ith row and the jth column, Y (i, j) represents the final pixel value of the ith row and the jth column after adaptive brightness adjustment, Y (i, j) ∈ [0,255], α, β are adaptive brightness adjustment factors, and α, β satisfy the following formula:
Figure FDA0003004822910000021
wherein α (i, j) + β (i.j) is 1 and α (i, j) is e (0,1), β (i, j) is e (0, 1);
in addition, X1 ═ G, X2 ═ 255-G, and Y is assigned to G; wherein G is the result of the adjustment process.
5. The mobile phone placement detection method according to claim 2, wherein the process of binarizing the adjustment processing result includes the steps of:
and carrying out binarization operation on the adjustment processing result according to an Otsu threshold value method.
6. The method for detecting placement of a mobile phone according to claim 1, wherein the process of determining a set of contour objects satisfying the threshold of contour objects in the contour mask image according to a preset threshold of contour objects is as follows:
Figure FDA0003004822910000022
wherein the length-to-width ratio threshold range of the contour object is [ T ]ratio1,Tratio2) The area threshold range of the contour object is [ T ]area1,Tarea2](ii) a The upper left corner coordinate threshold of the contour object is TxAnd TyWherein T isxThe corresponding threshold range is (0, T)x1]∪[Tx2,Mcols,),TyThe corresponding threshold range is (0, T)y1]。
7. The method for detecting placement of mobile phone according to claim 6, wherein the threshold range of coordinates is (0, T)x1]。
8. The utility model provides a detection device is put to cell-phone which characterized in that includes the step:
the image determining module is used for acquiring a front image of the mobile phone to be tested and determining a contour mask image of the front image;
the set acquisition module is used for determining a contour object set which meets a contour object threshold value in the contour mask image according to a preset contour object threshold value; wherein the contour object threshold comprises a length-to-width ratio threshold range and an area threshold range;
the object detection module is used for determining the contour objects meeting the coordinate threshold range in the contour object set as prompt contour objects; the prompt outline object is used for prompting that the placement of the mobile phone to be tested corresponding to the prompt outline object needs to be adjusted.
9. A computer storage medium having computer instructions stored thereon, wherein the computer instructions, when executed by a processor, implement the method of detecting placement of a cell phone according to any one of claims 1 to 7.
10. A computer device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, wherein the processor executes the program to implement the method of detecting placement of a mobile phone according to any one of claims 1 to 7.
CN202110359215.2A2021-04-022021-04-02Mobile phone placement detection method and deviceActiveCN113034530B (en)

Priority Applications (1)

Application NumberPriority DateFiling DateTitle
CN202110359215.2ACN113034530B (en)2021-04-022021-04-02Mobile phone placement detection method and device

Applications Claiming Priority (1)

Application NumberPriority DateFiling DateTitle
CN202110359215.2ACN113034530B (en)2021-04-022021-04-02Mobile phone placement detection method and device

Publications (2)

Publication NumberPublication Date
CN113034530Atrue CN113034530A (en)2021-06-25
CN113034530B CN113034530B (en)2024-07-26

Family

ID=76453496

Family Applications (1)

Application NumberTitlePriority DateFiling Date
CN202110359215.2AActiveCN113034530B (en)2021-04-022021-04-02Mobile phone placement detection method and device

Country Status (1)

CountryLink
CN (1)CN113034530B (en)

Cited By (6)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
CN114399507A (en)*2022-03-252022-04-26季华实验室 Appearance quality detection method, device, electronic device and storage medium of a mobile phone
US11922467B2 (en)2020-08-172024-03-05ecoATM, Inc.Evaluating an electronic device using optical character recognition
US12033454B2 (en)2020-08-172024-07-09Ecoatm, LlcKiosk for evaluating and purchasing used electronic devices
US12271929B2 (en)2020-08-172025-04-08Ecoatm LlcEvaluating an electronic device using a wireless charger
US12321965B2 (en)2020-08-252025-06-03Ecoatm, LlcEvaluating and recycling electronic devices
US12322259B2 (en)2018-12-192025-06-03Ecoatm, LlcSystems and methods for vending and/or purchasing mobile phones and other electronic devices

Citations (8)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
CN101664853A (en)*2009-10-122010-03-10上海交通大学Angle welding method of stainless steel sheet on basis of image processing
JP2015133549A (en)*2014-01-092015-07-23株式会社メイクソフトウェアImage processing system, image processing method and computer program
CN106097833A (en)*2016-08-192016-11-09上海葡萄纬度科技有限公司A kind of Educational toy external member and digit recognition method thereof
CN107506760A (en)*2017-08-042017-12-22西南大学Traffic signals detection method and system based on GPS location and visual pattern processing
CN108764236A (en)*2018-05-282018-11-06广州绿怡信息科技有限公司Mobile phone recovery method based on image procossing and device, computer equipment
CN110415183A (en)*2019-06-182019-11-05平安科技(深圳)有限公司Picture bearing calibration, device, computer equipment and computer readable storage medium
CN111210473A (en)*2020-01-212020-05-29上海悦易网络信息技术有限公司Mobile phone contour positioning method and equipment
CN112348761A (en)*2020-11-302021-02-09广州绿怡信息科技有限公司Equipment appearance image brightness adjusting method and device

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
CN101664853A (en)*2009-10-122010-03-10上海交通大学Angle welding method of stainless steel sheet on basis of image processing
JP2015133549A (en)*2014-01-092015-07-23株式会社メイクソフトウェアImage processing system, image processing method and computer program
CN106097833A (en)*2016-08-192016-11-09上海葡萄纬度科技有限公司A kind of Educational toy external member and digit recognition method thereof
CN107506760A (en)*2017-08-042017-12-22西南大学Traffic signals detection method and system based on GPS location and visual pattern processing
CN108764236A (en)*2018-05-282018-11-06广州绿怡信息科技有限公司Mobile phone recovery method based on image procossing and device, computer equipment
CN110415183A (en)*2019-06-182019-11-05平安科技(深圳)有限公司Picture bearing calibration, device, computer equipment and computer readable storage medium
CN111210473A (en)*2020-01-212020-05-29上海悦易网络信息技术有限公司Mobile phone contour positioning method and equipment
CN112348761A (en)*2020-11-302021-02-09广州绿怡信息科技有限公司Equipment appearance image brightness adjusting method and device

Cited By (6)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
US12322259B2 (en)2018-12-192025-06-03Ecoatm, LlcSystems and methods for vending and/or purchasing mobile phones and other electronic devices
US11922467B2 (en)2020-08-172024-03-05ecoATM, Inc.Evaluating an electronic device using optical character recognition
US12033454B2 (en)2020-08-172024-07-09Ecoatm, LlcKiosk for evaluating and purchasing used electronic devices
US12271929B2 (en)2020-08-172025-04-08Ecoatm LlcEvaluating an electronic device using a wireless charger
US12321965B2 (en)2020-08-252025-06-03Ecoatm, LlcEvaluating and recycling electronic devices
CN114399507A (en)*2022-03-252022-04-26季华实验室 Appearance quality detection method, device, electronic device and storage medium of a mobile phone

Also Published As

Publication numberPublication date
CN113034530B (en)2024-07-26

Similar Documents

PublicationPublication DateTitle
CN113034530B (en)Mobile phone placement detection method and device
CN113034531B (en)Equipment placement detection method and device
CN113034529A (en)Equipment image extraction method and device based on mini-mobile phone detector
CN112348761B (en)Equipment appearance image brightness adjusting method and device
WO2022142009A1 (en)Blurred image correction method and apparatus, computer device, and storage medium
CN113034481A (en)Equipment image blur detection method and device
CN113052798A (en)Screen aging detection model training method and screen aging detection method
CN113298078A (en)Equipment screen fragmentation detection model training method and equipment screen fragmentation detection method
CN109118447B (en) A picture processing method, picture processing device and terminal equipment
CN112634288A (en)Equipment area image segmentation method and device
CN111898610A (en)Card unfilled corner detection method and device, computer equipment and storage medium
CN116188379A (en)Edge defect detection method, device, electronic equipment and storage medium
CN112116596A (en)Training method of image segmentation model, image segmentation method, medium, and terminal
CN112767354A (en)Defect detection method, device and equipment based on image segmentation and storage medium
CN114170435A (en)Method and device for screening appearance images for recovery detection
CN112419207A (en)Image correction method, device and system
CN116168038B (en)Image reproduction detection method and device, electronic equipment and storage medium
CN115880167A (en)Redrawing method of plane object in video, electronic device and medium
CN112419231A (en) Visibility determination method, device, computer equipment and storage medium
CN113870223A (en) Equipment screen leakage detection method and device
CN114299293A (en)Image machine vision preprocessing method and device applied to recovery detection
CN113901996A (en) Device screen perspective detection model training method and device screen perspective detection method
CN113538291A (en) Card image tilt correction method, device, computer equipment and storage medium
CN118799285A (en) Wafer edge contamination detection method, device, equipment and storage medium
CN113781416A (en) A kind of conveyor belt tear detection method, device and electronic equipment

Legal Events

DateCodeTitleDescription
PB01Publication
PB01Publication
SE01Entry into force of request for substantive examination
SE01Entry into force of request for substantive examination
GR01Patent grant
GR01Patent grant

[8]ページ先頭

©2009-2025 Movatter.jp