Dressing code detection method and device, and storage medium

By acquiring images with posture cues using an image acquisition device, and then using deep learning algorithms and neural network models to identify human postures and accessories, this technology solves the problem of low efficiency in dress code detection in existing technologies, and achieves efficient and accurate dress code detection.

CN115797968BActive Publication Date: 2026-06-05CHINA UNITED NETWORK COMM GRP CO LTD +2

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
CHINA UNITED NETWORK COMM GRP CO LTD
Filing Date
2022-11-25
Publication Date
2026-06-05

AI Technical Summary

Technical Problem

In existing technologies, the efficiency of dress code detection is low and the user experience is poor. This is mainly because the human body posture is complex and varied, making it difficult for the person being tested to adopt a posture that meets the detection requirements, requiring multiple adjustments.

Method used

By acquiring images of the person being inspected performing actions based on posture cues using an image acquisition device, identifying the human posture and comparing it with a preset posture, the system determines whether the decorative image is up to standard. Deep learning algorithms and neural network models are then used for image processing and comparison.

Benefits of technology

It improves the efficiency and user experience of dress code inspection, simplifies the inspection process, reduces inspection time, and ensures the accuracy of inspection results.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115797968B_ABST
    Figure CN115797968B_ABST
Patent Text Reader

Abstract

The application provides a dressing standard detection method and device and a storage medium, relates to the technical field of computers, and can solve the problem of low dressing standard detection efficiency in the prior art. The method comprises the following steps: acquiring a first image, and determining a human body posture image of a to-be-detected person in the first image; the first image is an image collected by an image acquisition device at a moment when the to-be-detected person makes a movement based on a first posture prompt; in the case that the human body posture image is a preset human body posture image corresponding to the first posture prompt, the image of a decoration currently worn by the to-be-detected person is determined based on the first image; the preset human body posture is a human body posture meeting the requirements of dressing standard detection; the image of the decoration is compared with the image of a standard decoration to generate a comparison result; and it is determined whether the dressing of the to-be-detected person is standard based on the comparison result. The embodiment of the application is used in the process of dressing standard detection.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of computer technology, and in particular to a method, apparatus and storage medium for detecting dress code. Background Technology

[0002] To meet the industry's professional requirements for dress code, it is necessary to inspect the attire of industry personnel. Currently, the main methods for dress code inspection are as follows: acquiring images of the personnel to be inspected using an image acquisition device, determining the human posture based on the images, and analyzing the dress information in the images, provided that the human posture meets the inspection conditions, to determine whether the industry personnel's attire is in accordance with regulations.

[0003] However, since human movement is non-rigid and human posture is complex and varied, it is difficult for the person being tested to adopt a posture that meets the above-mentioned testing conditions if they do not know the human posture recorded in the testing conditions. This can easily lead to the person being tested needing to make multiple adjustments to complete the clothing standard test, which prolongs the clothing test time, resulting in low operating efficiency of the above method and a poor user experience. Summary of the Invention

[0004] This application provides a method, apparatus, and storage medium for dress code testing, which can solve the problem of low efficiency in dress code testing in the prior art.

[0005] To achieve the above objectives, this application adopts the following technical solution:

[0006] In a first aspect, this application provides a method for detecting dress code compliance. The method includes: acquiring a first image and determining a human posture image of the person to be tested in the first image; the first image is an image acquired by an image acquisition device at the moment when the person to be tested performs an action based on a first posture prompt; if the human posture image is a preset human posture image corresponding to the first posture prompt, determining an image of an accessory currently worn by the person to be tested based on the first image; the preset human posture is a human posture that meets the requirements for dress code compliance detection; comparing the image of the accessory with the image of a compliant accessory to generate a comparison result; and determining whether the person to be tested's dress code is compliant based on the comparison result.

[0007] In one possible implementation, determining whether the clothing of the person to be inspected is standardized based on the comparison result includes: if the comparison result is greater than or equal to a preset threshold, determining that the clothing of the person to be inspected is standardized; if the comparison result is less than the preset threshold, determining that the clothing of the person to be inspected is not standardized.

[0008] In one possible implementation, the method further includes: if it is determined that the clothing of the person to be inspected is not in accordance with regulations, acquiring a second image and determining the human posture image of the person to be inspected in the second image; the second image is an image acquired by the image acquisition device at the moment when the person to be inspected performs an action based on the second posture prompt; if the human posture image is a preset human posture corresponding to the second posture prompt, determining the image of the decoration currently worn by the person to be inspected based on the second image; comparing the image of the decoration with the image of a standard decoration to generate a comparison result; and determining whether the clothing of the person to be inspected is in accordance with regulations based on the comparison result.

[0009] In one possible implementation, the method further includes: acquiring a third image, which is an image acquired by the image acquisition device at any time before acquiring the first image; and generating a first posture prompt if the center position of the person to be detected in the third image is within a preset range.

[0010] Secondly, this application provides a clothing compliance detection device, which includes: a communication unit and a processing unit; the communication unit is used to acquire a first image; the first image is an image acquired by an image acquisition device at the moment when the person to be tested performs an action based on a first posture prompt; the processing unit is used to determine the human posture image of the person to be tested in the first image; when the human posture image is a preset human posture image corresponding to the first posture prompt, the processing unit is further used to determine, based on the first image, an image of the decoration currently worn by the person to be tested; the preset human posture is a human posture that meets the clothing compliance detection requirements; the processing unit is further used to compare the image of the decoration with the image of the compliant decoration to generate a comparison result; the processing unit is further used to determine, based on the comparison result, whether the clothing of the person to be tested is compliant.

[0011] In one possible implementation, if the comparison result is greater than or equal to a preset threshold, the processing unit is further used to determine the dress code of the person to be inspected; if the comparison result is less than the preset threshold, the processing unit is further used to determine that the dress code of the person to be inspected is not standard.

[0012] In one possible implementation, when the clothing of the person to be inspected is not in accordance with regulations, the communication unit is further configured to acquire a second image; the processing unit is further configured to determine the human posture image of the person to be inspected in the second image; the second image is an image acquired by the image acquisition device at the moment when the person to be inspected performs an action based on the second posture prompt; when the human posture image is a preset human posture corresponding to the second posture prompt, the processing unit is further configured to determine the image of the decoration currently worn by the person to be inspected based on the second image; the processing unit is further configured to compare the image of the decoration with the image of a standard decoration to generate a comparison result; the processing unit is further configured to determine whether the clothing of the person to be inspected is in accordance with regulations based on the comparison result.

[0013] In one possible implementation, the communication unit is further configured to acquire a third image, which is an image acquired by the image acquisition device at any time before acquiring the first image; if the center position of the person to be detected in the third image is within a preset range, the processing unit is further configured to generate a first posture prompt.

[0014] Thirdly, this application provides a dress code detection device, which includes: a processor and a communication interface; the communication interface and the processor are coupled, and the processor is used to run computer programs or instructions to implement the dress code detection method as described in the first aspect and any possible implementation of the first aspect.

[0015] Fourthly, this application provides a computer-readable storage medium storing instructions that, when executed on a terminal, cause the terminal to perform the dress code detection method as described in the first aspect and any possible implementation thereof.

[0016] Fifthly, this application provides a computer program product containing instructions that, when run on a dress code detection device, causes the dress code detection device to perform the dress code detection method as described in the first aspect and any possible implementation thereof.

[0017] In a sixth aspect, this application provides a chip including a processor and a communication interface, the communication interface being coupled to the processor, the processor being used to run computer programs or instructions to implement the dress code detection method as described in the first aspect and any possible implementation thereof.

[0018] Specifically, the chip provided in this application also includes a memory for storing computer programs or instructions. Attached Figure Description

[0019] Figure 1 A structural diagram of a dress code detection system provided in this application embodiment;

[0020] Figure 2 A flowchart illustrating a dress code detection method provided in this application embodiment;

[0021] Figure 3 A flowchart illustrating another dress code detection method provided in this application embodiment;

[0022] Figure 4 A flowchart illustrating another dress code detection method provided in this application embodiment;

[0023] Figure 5 A flowchart illustrating another dress code detection method provided in this application embodiment;

[0024] Figure 6 This is a schematic diagram of the structure of a dress code detection device provided in an embodiment of this application;

[0025] Figure 7 This is a schematic diagram of another dress code detection device provided in an embodiment of this application. Detailed Implementation

[0026] The following description, in conjunction with the accompanying drawings, details the dress code detection method, apparatus, and storage medium provided in the embodiments of this application.

[0027] In this article, the term "and / or" is merely a description of the relationship between related objects, indicating that there can be three relationships. For example, A and / or B can represent three situations: A exists alone, A and B exist simultaneously, and B exists alone.

[0028] The terms "first" and "second," etc., used in the specification and drawings of this application are used to distinguish different objects or to distinguish different treatments of the same object, rather than to describe a specific order of objects.

[0029] Furthermore, the terms "comprising" and "having," and any variations thereof, used in the description of this application are intended to cover non-exclusive inclusion. For example, a process, method, system, product, or apparatus that includes a series of steps or units is not limited to the steps or units listed, but may optionally include other steps or units not listed, or may optionally include other steps or units inherent to such process, method, product, or apparatus.

[0030] It should be noted that in the embodiments of this application, the words "exemplary" or "for example" are used to indicate examples, illustrations, or explanations. Any embodiment or design scheme described as "exemplary" or "for example" in the embodiments of this application should not be construed as being more preferred or advantageous than other embodiments or design schemes. Specifically, the use of the words "exemplary" or "for example" is intended to present the relevant concepts in a specific manner.

[0031] In the description of this application, unless otherwise stated, "a plurality of" means two or more.

[0032] like Figure 1 As shown, Figure 1 This diagram illustrates the structure of a dress code detection system according to an embodiment of this application. The dress code detection system 100 includes a dress code detection device 10 and an image acquisition device 20. The dress code detection device 10 and the image acquisition device 20 are communicatively connected.

[0033] The clothing standard detection device 10 is an image processing device that can acquire a first image, determine the human posture image of the person to be detected in the first image, and, if the human posture image is a preset human posture image corresponding to the first posture prompt, determine the image of the decoration currently worn by the person to be detected based on the first image, compare the image of the decoration with the image of the standard decoration, generate a comparison result, and determine whether the clothing of the person to be detected is standard based on the comparison result.

[0034] The first image is the image captured by the image acquisition device at the moment when the person to be inspected performs an action based on the first posture prompt. The preset human posture is a human posture that meets the requirements of the dress code inspection.

[0035] Optionally, the dress code detection device 10 can also manage the image acquisition device 20, such as determining the acquisition time interval and running time of each image acquisition device.

[0036] In some examples, the dress code detection device 10 can be various personal computers, laptops, smartphones, tablets and other computing devices, and this application does not limit it.

[0037] The image acquisition device 20 is used to acquire images and send the acquired images to the dress code detection device 10.

[0038] In some examples, the image acquisition device 20 can be a device for acquiring images, such as a camera, a snapshot camera, a video camera, a webcam, etc., and this application does not limit it.

[0039] Furthermore, the dress code detection system 100 described in this application is for the purpose of more clearly illustrating the technical solutions of this application, and does not constitute a limitation on the technical solutions provided in this application. As those skilled in the art will know, with the evolution of network architecture and the emergence of new dress code detection systems 100, the technical solutions provided in this application are also applicable to similar technical problems.

[0040] To meet the industry's professional requirements for dress code, it is necessary to inspect the attire of industry personnel. Traditional dress code inspection involves determining whether the attire of the person being inspected is in compliance with regulations through self-checking in a mirror or by visual inspection by others. However, these traditional methods are mainly based on manual dress code inspection, which has low accuracy and efficiency.

[0041] To improve the accuracy and efficiency of attire inspection, those skilled in the art have proposed the following method 1: acquiring an image of the attire of the person to be inspected, detecting the current accessories of the person to be inspected based on the image, and determining whether the attire of the person to be inspected is compliant based on the detected accessories. This allows for non-contact inspection of workwear compliance. However, method 1 only focuses on detecting the current accessories of the person to be inspected (e.g., clothing, hats, bow ties, neckties, epaulettes, scarves, ribbons, belts, etc.), ignoring the person's posture during inspection. When the posture is unfavorable for attire inspection, it can easily lead to missed or false detections, resulting in low accuracy in attire compliance inspection.

[0042] To improve the accuracy of clothing detection, the following method 2 has been proposed by those skilled in the art: acquiring an image of the person to be detected by an image acquisition device, determining the human posture based on the image, and analyzing the clothing information of the image when the human posture meets the detection conditions, thereby determining whether the clothing of the industry personnel is standardized.

[0043] However, since human movement is non-rigid and human posture is complex and varied, it is difficult for the person being tested to adopt a posture that meets the above-mentioned testing conditions if they do not know the human posture recorded in the testing conditions. This can easily lead to the person being tested needing to make multiple adjustments to complete the clothing standard test, which prolongs the clothing test time, resulting in low operating efficiency of the above method and a poor user experience.

[0044] To address the problems existing in the prior art, this application proposes a dress code detection method that can improve the efficiency of dress code detection. For example... Figure 2 As shown, the method includes:

[0045] S201. The dress code detection device acquires a first image and determines the human posture of the person to be detected in the first image.

[0046] The first image is the image captured by the image acquisition device at the moment when the person to be tested performs an action based on the first posture prompt.

[0047] As one possible implementation, the process by which the clothing standard detection device determines the human posture of the person to be detected in the first image can be as follows: the clothing standard detection device can extract the skeletal key points of the current posture of the person to be detected in the first image using a deep learning human posture recognition algorithm (e.g., the open-source human posture estimation model (Openpose)), and connect the extracted skeletal key points in an orderly manner to obtain the human posture of the person to be detected.

[0048] In some examples, the aforementioned first posture prompt can be given to the person being tested via voice, for example, the dress code detection device can verbally announce the corresponding human posture. The first posture prompt can also be given to the person being tested via text, for example, the dress code detection device can display a dynamic image or skeletal key point image of the corresponding human posture on its own display screen. The first posture prompt can also be given to the person being tested via image, for example, the dress code detection device can display a text description of the corresponding human posture on its own display screen. The dress code detection device can set the prompting method of the first posture based on the actual situation, and this application does not impose any restrictions on this.

[0049] S202. The dress code detection device determines whether the human posture is the first posture and prompts the corresponding preset human posture.

[0050] The preset human posture is the human posture that meets the requirements of the dress code inspection.

[0051] Optionally, the above-mentioned dress code inspection requirements can be determined by summarizing human postures that are conducive to conducting dress code inspections.

[0052] For example, the human postures that are conducive to dress code inspection can be upright with arms outstretched and / or upright with back turned. In this example, the dress code inspection device can set the dress code inspection requirement to be upright with arms outstretched and / or upright with back turned, so that the human posture obtained by the dress code inspection device is upright with arms outstretched and / or upright with back turned, or upright with arms outstretched and / or upright with back turned.

[0053] As one possible implementation, the above-mentioned S202 process can be as follows: The clothing standard detection device can pre-determine an image of a preset human posture corresponding to the first posture prompt (e.g., a skeletal key point image), and normalize both the human posture image and the preset human posture image corresponding to the first posture prompt. The clothing standard detection device can determine the key points (e.g., skeletal key points) of the human posture image and the key points of the preset human posture image corresponding to the first posture prompt, and determine the positional deviation of each key point in the human posture image and the preset human posture image corresponding to the first posture prompt. If the deviation value of the key point is less than the preset deviation, the clothing standard detection device determines the human posture as the preset human posture corresponding to the first posture prompt.

[0054] As another possible implementation, the above-mentioned S202 process can be as follows: The clothing standard detection device can pre-determine the image of the preset human posture corresponding to the first posture prompt. The clothing standard detection device can determine a posture classification model based on a deep learning classification network (e.g., ResNet50), and input the human posture image and the image of the preset human posture corresponding to the first posture prompt into the posture classification model, and output the recognition result. This recognition result is used to characterize whether the human posture is the preset human posture corresponding to the first posture prompt.

[0055] Optionally, the aforementioned preset human postures can be customized according to the industry of the person being tested. For example, for people in industries such as banking and insurance, the dress code detection device can set the preset human posture to be upright with arms outstretched and / or upright with back turned. For people in industries such as gas stations and chemical plants, the dress code detection device can set the preset human posture to be upright with arms outstretched and / or with legs raised and kicking. For people in the public security industry, the dress code detection device can set the preset human posture to be upright with arms outstretched and / or with arms bent forward and / or upright with back turned.

[0056] If the human posture is not the preset human posture corresponding to the first posture prompt, the dress code detection device acquires a new first image. This new first image is the image captured by the image acquisition device at the moment when the person to be detected makes a new movement based on the first posture prompt. In this way, the dress code detection device can subsequently perform subsequent operations based on the new first image.

[0057] If the human body posture is the first posture and the corresponding preset human body posture is indicated, the dress code detection device executes S203.

[0058] S203. The dress code detection device determines the image of the accessories currently worn by the person to be detected based on the first image.

[0059] As one possible implementation, the above-mentioned S203 process can be as follows: the dress code detection device can determine the images and logos of multiple preset decorations based on experience, and train an initial neural network model based on the images and logos of the multiple preset decorations until a decoration detection model (e.g., YOLOv5) is determined. The dress code detection device can input the first image into the decoration detection model to obtain an image of the decoration currently worn by the person to be detected.

[0060] S204. The dress code detection device compares the image of the decoration with the image of the standard decoration and generates a comparison result.

[0061] Optionally, the above comparison results can be used to characterize the similarity between the image of the ornament and the image of the standard ornament.

[0062] In one possible implementation, the aforementioned standardized decorations can be tailored to the industry of the person being tested. For example, for personnel in industries such as banking and insurance, the dress code detection device can set standardized decorations as clothing, trousers, ties, scarves, hair accessories, and ribbons; for personnel in industries such as gas stations and chemical plants, the dress code detection device can set standardized decorations as clothing, trousers, safety helmets, and anti-static shoes; and for personnel in the public security industry, the dress code detection device can set standardized decorations as clothing, trousers, hats, epaulettes, batons, and walkie-talkies.

[0063] Alternatively, the preset decorations can vary depending on the different human postures in different industries. For example, for the upright posture with arms outstretched in industries such as banking and insurance, the dress code detection device can set the standard decorations as clothing, trousers, ties, and scarves; for the upright posture with back turned in industries such as banking and insurance, the dress code detection device can set the standard decorations as hair accessories and ribbons; for the upright posture with arms outstretched in industries such as gas stations and chemical plants, the dress code detection device can set the standard decorations as clothing, trousers, and safety helmets; and for the upright posture with arms outstretched in industries such as gas stations and chemical plants... For example, for the human posture of raising and kicking legs in industries such as law enforcement, the clothing standard detection device can set the standard decoration as anti-static shoes; for example, for the human posture of standing upright with arms outstretched in the public security industry, the clothing standard detection device can set the standard decoration as clothing, trousers, and hats; for example, for the human posture of bending over in the public security industry, the clothing standard detection device can set the standard decoration as epaulettes; for example, for the human posture of standing upright with back to the public security industry, the clothing standard detection device can set the standard decoration as a baton and walkie-talkie at the waist.

[0064] S205. The dress code detection device determines whether the dress code of the person being tested is compliant based on the comparison results.

[0065] As an optional implementation method, the above-mentioned S205 implementation process can be as follows: the dress code detection device can compare the above comparison results with a preset threshold, and determine whether the dress code of the person to be tested is compliant based on the above comparison results.

[0066] As an example, the above-mentioned attire could be work clothes.

[0067] The above technical solution brings at least the following beneficial effects: The dress code detection device can determine the human posture image based on the image captured by the image acquisition device at the moment when the person to be inspected makes a movement based on the first posture prompt. If the human posture image is a preset human image, the subsequent decoration detection process is executed, and the device determines whether the person's attire is compliant based on the comparison between the detected decorations and the preset decorations. In this way, the person to be inspected can easily make a human posture conducive to dress code detection based on the first posture prompt, shortening the dress code detection time, thereby improving the detection efficiency of the above method and enhancing the user experience.

[0068] In an optional embodiment, as shown in S205, the dress code detection device determines whether the attire of the person being inspected is compliant based on the comparison results. Figure 2 Based on the illustrated method embodiments, this embodiment provides a possible implementation, such as... Figure 3 As shown, Figure 3 This application provides one implementation of S205. Therefore, the implementation process of S205 can be achieved through the following S301 to S303.

[0069] S301. The dress code detection device determines whether the comparison result is greater than or equal to the preset threshold.

[0070] Optionally, the dress code testing device can set a preset threshold according to the actual situation. For example, the dress code testing device can set the preset threshold to 100%, or it can set the preset threshold to other values ​​(98%). This application does not impose any restrictions on this.

[0071] If the comparison result is greater than or equal to the preset threshold, the dress code detection device executes S302.

[0072] S302. Dress code detection device determines the dress code of the personnel to be tested.

[0073] For example, with a comparison result of 100% and a preset threshold of 100%, the dress code detection device can determine the dress code of the person to be tested.

[0074] If the comparison result is less than the preset threshold, the dress code detection device will execute S303.

[0075] S303. Dress code detection device determines whether the dress code of the person to be tested is not up to standard.

[0076] For example, with a comparison result of 90% and a preset threshold of 100%, the dress code detection device can determine that the person being tested is not dressed correctly.

[0077] The above technical solution brings at least the following beneficial effects: When the comparison result is greater than or equal to a preset threshold, the dress code detection device determines that the person being tested is dressed correctly; when the comparison result is less than the preset threshold, it determines that the person being tested is dressed incorrectly. As can be seen from the above, the dress code detection device can determine whether the person being tested is dressed correctly based solely on the comparison result and the preset threshold, thus simplifying the determination of whether the person being tested is dressed correctly.

[0078] In an optional embodiment, if the clothing of the person to be inspected is not in accordance with regulations, the clothing compliance detection device can acquire a second image and complete the clothing compliance detection based on the second image, thereby avoiding detection errors caused by the preset human posture corresponding to the first posture prompt not meeting the detection requirements of the current person to be inspected. Combined with... Figure 3 ,like Figure 4 As shown, therefore, when the clothing of the person to be inspected is not in accordance with regulations, the process of the clothing compliance inspection device performing clothing compliance inspection can be implemented through the following steps S401 to S405.

[0079] S401. The dress code detection device acquires a second image and determines the human posture of the person to be detected in the second image.

[0080] The second image is the image captured by the image acquisition device at the moment when the person to be tested performs an action based on the second posture cues.

[0081] Optionally, S401 can be understood with reference to S201, and will not be repeated here.

[0082] S402. The dress code detection device determines whether the human posture is the second posture and prompts the corresponding preset human posture.

[0083] Optionally, S402 can be understood with reference to S202, and will not be repeated here.

[0084] If the human body posture is the second posture, indicating the corresponding preset human body posture, then the dress code detection device executes S403.

[0085] S403. The dress code detection device determines the image of the accessories currently worn by the person to be detected based on the second image.

[0086] Optionally, S403 can be understood with reference to S203, and will not be repeated here.

[0087] S404. The dress code detection device compares the image of the decoration with the image of the standard decoration and generates a comparison result.

[0088] Optionally, S404 can be understood with reference to S204, and will not be repeated here.

[0089] S405. The dress code detection device determines whether the dress code of the person being tested is compliant based on the comparison results.

[0090] Optionally, S405 can be understood with reference to S205, and will not be repeated here.

[0091] The above technical solution brings at least the following beneficial effects: The dress code detection device can determine a human posture image based on the image captured by the image acquisition device at the moment the person being inspected makes a movement based on the second posture prompt, even when the person's dress is not in accordance with regulations. If the human posture image is a preset human image, the device then performs the subsequent decoration detection process and determines whether the person's dress is in accordance with regulations based on the comparison between the detected decorations and the preset decorations. Thus, even when the person's dress is not in accordance with regulations, the dress code detection device can still help the person make a posture conducive to dress code detection based on the second posture prompt, shortening the dress code detection time, thereby improving the detection efficiency of the above method, enhancing the user experience, and avoiding detection errors caused by the preset human posture corresponding to the first posture prompt not meeting the detection requirements of the current person being inspected.

[0092] In one optional embodiment, the dress code detection device can pre-determine whether the person to be detected is within the detection range at any time before acquiring the first image. If the person to be detected is within the detection range, it generates a first posture prompt for acquiring the first image, thus avoiding detection failure due to the person not being within the detection range. Combined with... Figure 4 ,like Figure 5 As shown, therefore, when the clothing of the person to be inspected is not in accordance with regulations, the process of the clothing compliance inspection device performing clothing compliance inspection can be implemented through the following steps S501 to S503.

[0093] S501, The dress code detection device acquires a third image.

[0094] The third image is an image acquired by the image acquisition device at any time before the first image is acquired.

[0095] Optionally, the image acquisition device can capture an image when a person to be inspected appears in the monitored area, and determine the captured image as a third image. Then, the image acquisition device sends the third image to the dress code inspection device, and the dress code inspection device receives the third image from the image acquisition device.

[0096] S502, The dress code detection device determines whether the center position of the person to be detected in the third image is within a preset range.

[0097] Optionally, the aforementioned preset range can be a circular area defined by the midpoint of the image as the origin and the target value (e.g., 30 mm) as the radius.

[0098] If the center position of the person to be detected in the third image is not within the preset range, the dress code detection device will re-acquire a new third image and perform subsequent operations based on the new third image.

[0099] If the center position of the person to be detected in the third image is within the preset range, the dress code detection device executes S503.

[0100] S503, The dress code detection device generates the first posture prompt.

[0101] Optionally, the first posture cues can be understood by referring to the descriptions of the corresponding positions mentioned above, and will not be repeated here.

[0102] The above technical solution brings at least the following beneficial effects: the dress code detection device acquires a third image (i.e., an image acquired by the image acquisition device at any time before acquiring the first image), and generates the first posture prompt when the center position of the person to be detected in the third image is within a preset range. This can avoid the problem of dress code detection failure when the person to be detected is not within the detection range, and further improve the detection efficiency.

[0103] It is understood that the above-mentioned dress code detection method can be implemented by a dress code detection device. To achieve the above functions, the dress code detection device includes hardware structures and / or software modules corresponding to the execution of each function. Those skilled in the art should readily recognize that, based on the modules and algorithm steps of the various examples described in conjunction with the embodiments disclosed herein, the embodiments disclosed in this application can be implemented in hardware or a combination of hardware and computer software. Whether a function is executed in hardware or by computer software driving hardware depends on the specific application and design constraints of the technical solution. Those skilled in the art can use different methods to implement the described functions for each specific application, but such implementation should not be considered beyond the scope of the embodiments disclosed in this application.

[0104] The embodiments disclosed in this application can divide the dress code detection device generated according to the above method examples into functional modules. For example, each function can be divided into its own functional module, or two or more functions can be integrated into one processing module. The integrated module can be implemented in hardware or as a software functional module. It should be noted that the module division in the embodiments disclosed in this application is illustrative and only represents one logical functional division. In actual implementation, there may be other division methods.

[0105] Figure 6 This is a schematic diagram of a dress code detection device provided in an embodiment of the present invention. Figure 6 As shown, the dress code inspection device 60 can be used to perform... Figures 2-5 The dress code detection method is shown. The dress code detection device 60 includes a communication unit 601 and a processing unit 602.

[0106] The communication unit 601 is used to acquire a first image; the first image is an image acquired by the image acquisition device at the moment when the person to be inspected makes an action based on the first posture prompt; the processing unit 602 is used to determine the human posture image of the person to be inspected in the first image; when the human posture image is a preset human posture image corresponding to the first posture prompt, the processing unit 602 is also used to determine the image of the decoration currently worn by the person to be inspected based on the first image; the preset human posture is a human posture that meets the requirements of the clothing standard detection; the processing unit 602 is also used to compare the image of the decoration with the image of the standard decoration to generate a comparison result; the processing unit 602 is also used to determine whether the clothing of the person to be inspected is standard based on the comparison result.

[0107] In one possible implementation, if the comparison result is greater than or equal to a preset threshold, the processing unit 602 is further used to determine the dress code of the person to be inspected; if the comparison result is less than the preset threshold, the processing unit 602 is further used to determine that the dress code of the person to be inspected is not standard.

[0108] In one possible implementation, if the clothing of the person to be inspected is not in accordance with regulations, the communication unit 601 is further configured to acquire a second image; the processing unit 602 is further configured to determine the human posture image of the person to be inspected in the second image; the second image is an image acquired by the image acquisition device at the moment when the person to be inspected performs an action based on the second posture prompt; if the human posture image is a preset human posture corresponding to the second posture prompt, the processing unit 602 is further configured to determine the image of the decoration currently worn by the person to be inspected based on the second image; the processing unit 602 is further configured to compare the image of the decoration with the image of a standard decoration to generate a comparison result; the processing unit 602 is further configured to determine whether the clothing of the person to be inspected is in accordance with regulations based on the comparison result.

[0109] In one possible implementation, the communication unit 601 is further configured to acquire a third image, which is an image acquired by the image acquisition device at any time before acquiring the first image; if the center position of the person to be detected in the third image is within a preset range, the processing unit 602 is further configured to generate a first posture prompt.

[0110] In the case of implementing the functions of the integrated modules described above in hardware, this embodiment of the invention provides a possible structural schematic diagram of the electronic device involved in the above embodiments. For example... Figure 7 As shown, a dress code detection device 70, for example, is used to perform... Figures 2-5 The method for detecting dress code is shown. The dress code detection device 70 includes a processor 701, a memory 702, a communication interface 703, and a bus 704. The processor 701 and the memory 702 can be connected via the bus 704.

[0111] Processor 701 is the control center of the user equipment and can be a single processor or a collective term for multiple processing elements. For example, processor 701 can be a general-purpose central processing unit (CPU) or other general-purpose processors. The general-purpose processor can be a microprocessor or any conventional processor.

[0112] As one embodiment, processor 701 may include one or more CPUs, such as CPU0 and CPU1.

[0113] The memory 702 may be a read-only memory (ROM) or other type of static storage device capable of storing static information and instructions, random access memory (RAM) or other type of dynamic storage device capable of storing information and instructions, or electrically erasable programmable read-only memory (EEPROM), disk storage medium or other magnetic storage device, or any other medium capable of carrying or storing desired program code in the form of instructions or data structures and accessible by a computer, but is not limited thereto.

[0114] As one possible implementation, the memory 702 can exist independently of the processor 701. The memory 702 can be connected to the processor 701 via a bus 704 and is used to store instructions or program code. When the processor 701 calls and executes the instructions or program code stored in the memory 702, it can implement the map drawing method provided in this embodiment of the invention.

[0115] In another possible implementation, the memory 702 can also be integrated with the processor 701.

[0116] Communication interface 703 is used to connect with other devices via a communication network. This communication network can be Ethernet, a wireless access network, a wireless local area network (WLAN), etc. Communication interface 703 may include a communication unit 601 for receiving data.

[0117] In one design, the communication interface 703 in the electronic device provided in this embodiment of the invention may also be integrated into the processor.

[0118] Bus 704 can be an Industry Standard Architecture (ISA) bus, a Peripheral Component Interconnect (PCI) bus, or an Extended Industry Standard Architecture (EISA) bus, etc. This bus can be divided into address bus, data bus, control bus, etc. For ease of representation, Figure 7 The bus is represented by a single thick line, but this does not mean that there is only one bus or one type of bus.

[0119] It should be pointed out that, Figure 7The structure shown does not constitute a limitation on the dress code detection device 70. Except Figure 7 In addition to the components shown, the dress code detection device 70 may include more or fewer components than shown, or combine certain components, or have different component arrangements.

[0120] As an example, combined Figure 6 The processing unit 602 in the electronic device performs the functions of Figure 7 The processor 701 in it has the same function.

[0121] Through the above description of the embodiments, those skilled in the art will clearly understand that, for the sake of convenience and brevity, only the division of the above functional modules is used as an example. In practical applications, the above functions can be assigned to different functional modules as needed, that is, the internal structure of the device can be divided into different functional modules to complete all or part of the functions described above. The specific working process of the system, device, and unit described above can be referred to the corresponding process in the foregoing method embodiments, and will not be repeated here.

[0122] The computer-readable storage medium may be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination thereof. More specific examples (a non-exhaustive list) of computer-readable storage media include: electrical connections having one or more wires; portable computer disks; hard disks; random access memory (RAM); read-only memory (ROM); erasable programmable read-only memory (EPROM); registers; hard disks; optical fibers; portable compact disc read-only memory (CD-ROM); optical storage devices; magnetic storage devices; or any suitable combination thereof; or any other form of computer-readable storage medium known in the art. An exemplary storage medium is coupled to a processor, enabling the processor to read information from and write information to the storage medium. Of course, the storage medium may also be a component of the processor. The processor and the storage medium may reside in an application-specific integrated circuit (ASIC). In the embodiments of this application, the computer-readable storage medium can be any tangible medium that contains or stores a program that can be used by or in conjunction with an instruction execution system, apparatus, or device.

[0123] The above are merely specific embodiments of this application, but the scope of protection of this application is not limited thereto. Any variations or substitutions within the technical scope disclosed in this application should be included within the scope of protection of this application. Therefore, the scope of protection of this application should be determined by the scope of the claims.

Claims

1. A method for detecting dress code compliance, characterized in that, include: Acquire a third image, which is an image acquired by the image acquisition device at any time before acquiring the first image; If the center position of the person to be detected in the third image is within a preset range, a first posture prompt is generated; Acquire a first image and determine the human posture image of the person to be detected in the first image; the first image is the image acquired by the image acquisition device at the moment when the person to be detected makes an action based on the first posture prompt; When the human posture image is a preset human posture image corresponding to the first posture prompt, the image of the decoration currently worn by the person to be tested is determined based on the first image; the preset human posture is a human posture that meets the requirements of the dress code detection. The image of the decorative object is compared with the image of the standard decorative object to generate a comparison result; Based on the comparison results, it is determined whether the attire of the person to be tested is standardized.

2. The method according to claim 1, characterized in that, Determining whether the attire of the person to be tested is appropriate based on the comparison results includes: If the comparison result is greater than or equal to a preset threshold, the dress code of the person to be tested is determined. If the comparison result is less than the preset threshold, it is determined that the clothing of the person to be tested is not in accordance with regulations.

3. The method according to claim 2, characterized in that, The method further includes: When the clothing of the person to be tested is not in accordance with regulations, a second image is acquired, and the human posture image of the person to be tested in the second image is determined; the second image is the image acquired by the image acquisition device at the moment when the person to be tested makes an action based on the second posture prompt; When the human posture image is a preset human posture corresponding to the second posture prompt, the image of the decoration currently worn by the person to be detected is determined based on the second image; The image of the decorative object is compared with the image of the standard decorative object to generate a comparison result; Based on the comparison results, it is determined whether the attire of the person to be tested is standardized.

4. A dress code detection device, characterized in that, include: Communication unit and processing unit; The communication unit is used to acquire a third image, which is an image acquired by the image acquisition device at any time before acquiring the first image; If the center position of the person to be detected in the third image is within a preset range, the processing unit is also used to generate a first posture cue; The communication unit is also used to acquire the first image; the first image is an image acquired by the image acquisition device at the moment when the person to be detected makes an action based on the first posture prompt; The processing unit is further configured to determine the human posture image of the person to be detected in the first image; When the human posture image is a preset human posture image corresponding to the first posture prompt, the processing unit is further configured to determine the image of the decoration currently worn by the person to be detected based on the first image; the preset human posture is a human posture that meets the requirements of the dress code detection. The processing unit is further configured to compare the image of the decoration with the image of the standard decoration and generate a comparison result; The processing unit is also used to determine whether the clothing of the person to be tested is in accordance with the comparison results.

5. The apparatus according to claim 4, characterized in that, If the comparison result is greater than or equal to a preset threshold, the processing unit is further configured to determine the dress code of the person to be tested; If the comparison result is less than the preset threshold, the processing unit is further configured to determine that the clothing of the person to be tested is not in accordance with regulations.

6. The apparatus according to claim 5, characterized in that, In the event that the person being inspected is not dressed correctly, the communication unit is also used to acquire a second image; The processing unit is further configured to determine the human posture image of the person to be detected in the second image; the second image is an image captured by the image acquisition device at the moment when the person to be detected makes an action based on the second posture cues. When the human posture image is a preset human posture corresponding to the second posture prompt, the processing unit is further configured to determine the image of the decoration currently worn by the person to be detected based on the second image; The processing unit is further configured to compare the image of the decoration with the image of the standard decoration and generate a comparison result; The processing unit is also used to determine whether the clothing of the person to be tested is in accordance with the comparison results.

7. A dress code detection device, characterized in that, include: A processor and a communication interface; the communication interface is coupled to the processor, the processor being used to run computer programs or instructions to implement the dress code detection method as described in any one of claims 1-3.

8. A computer-readable storage medium storing instructions, characterized in that, When the computer executes the instruction, the computer performs the dress code detection method as described in any one of claims 1-3.