IMAGE PROCESSING APPARATUS, IMAGE PROCESSING METHOD, AND IMAGE PROCESSING PROGRAM

The image processing system uses machine learning to efficiently generate images with or without furniture while preserving the room's layout, addressing inefficiencies in existing manual editing and staging methods.

JP7542898B1Active Publication Date: 2024-09-02AT HOME LAB CO LTD

Patent Information

Application Number
JP2023211414
Authority / Receiving Office
JP · JP
Patent Type
Patents
Current Assignee / Owner
Filing Date
2023-12-14
Publication Date
2024-09-02
Estimated Expiration
2043-12-14

AI Technical Summary

Technical Problem

Existing methods for generating images without unnecessary furniture or with interior coordination in real estate listings are inefficient and fail to maintain the room's floor plan and geometric features, requiring manual editing or home staging which is impractical.

Method used

An image processing system using machine learning models for object detection and generation to automatically remove or add objects while preserving the room's geometric features and layout.

Benefits of technology

Facilitates the efficient creation of images without unnecessary furniture or with interior coordination, maintaining the room's layout and geometric features without manual intervention.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure 0007542898000001
    Figure 0007542898000001
Patent Text Reader

Abstract

A new image is generated by placing a new object in an area represented by an image while preserving the shape of the area. [Solution] An image processing device according to an embodiment includes a placement processing unit that generates a feature detection image for object placement based on geometric feature detection in a placement target image that represents an area, and generates an object placement image representing an area into which an object not placed in the placement target image has been placed, based on the feature detection image for object placement.
Need to check novelty before this filing date? Find Prior Art

Description

[Technical field]

[0001] The present disclosure relates to an image processing device, an image processing method, and an image processing program for processing an image. [Background technology]

[0002] Property introduction websites display images of rooms taken by real estate companies. Room images that are as follows are effective in attracting customers. Images of rooms without unnecessary furniture are effective in attracting customers because they show the layout of the room. Images of rooms with coordinated interiors are effective in attracting customers because they allow customers to imagine living there.

[0003] For properties that are currently occupied, it is not realistic to remove furniture in order to capture images of the room without unnecessary furniture, and it is also not realistic to perform home staging, which involves interior coordination of an actual room in order to capture images of the room with interior coordination, because it is necessary to clean and bring in new furniture after removing the furniture.

[0004] In the case of an unoccupied property, it is possible to take images of the room without unnecessary furniture, but carrying out home staging to take images of the room with its interior coordinated is not practical because it requires bringing in furniture. [Prior art documents] [Patent documents]

[0005] [Patent Document 1] JP 2021-149679 A Summary of the Invention [Problem to be solved by the invention]

[0006] For the above reasons, it is efficient to obtain an image of a room without unnecessary furniture based on an image in which furniture is arranged. Obtaining an image of a room without unnecessary furniture by manually editing images takes time. Therefore, the use of an image generation model called image generation AI to generate an image of a room without unnecessary furniture is being considered.

[0007] When generating a room image without unnecessary furniture based on a room image in which furniture is arranged using an image generation model, there is a problem that the layout of the room is not preserved. For example, the layout of the room is the shape of an area formed by geometric features. For example, the geometric features are the boundaries in the image of planes such as floors, walls, and ceilings, and the shapes in the image such as doors and windows.

[0008] For the above reasons, it is efficient to obtain interior-coordinated room images based on room images without unnecessary furniture by virtual home staging, which applies interior coordination to room images. Obtaining interior-coordinated room images by virtual home staging using manual image editing not only requires time, but also a sense of interior coordination. Therefore, the generation of interior-coordinated room images using an image generation model is being considered.

[0009] When generating an interior coordinated room image based on a room image without unnecessary furniture by virtual home staging using an image generation model, there is a problem that the layout of the room is not preserved. Furthermore, there is a problem that the colors and patterns of the floor, walls, ceiling, etc., the detailed shapes of windows, etc., and other facilities that should not be erased in the original room image are not preserved.

[0010] Patent Document 1 discloses generating an image in which CG objects such as furniture and equipment are arranged at predetermined positions in a virtual area corresponding to a target area. However, Patent Document 1 does not generate an image using an image generation model based on an input image.

[0011] In one aspect, an object of the present invention is to provide a technology that can easily generate a new image in which objects placed in an image have been erased while preserving the shape of an area represented in the image.

[0012] In another aspect, an object of the present invention is to provide a technique capable of generating a new image in which a new object is placed in an area represented by an image while preserving the shape of the area. [Means for solving the problem]

[0013] The image processing device according to the embodiment includes a placement processing unit that generates a feature detection image for object placement based on geometric feature detection in a placement target image that represents an area, and generates an object placement image representing an area in which an object that is not placed in the placement target image is placed, based on the feature detection image for object placement. Effect of the Invention

[0014] According to one aspect of the embodiment, it is possible to easily generate a new image in which an object placed in an image is erased while maintaining the shape of an area represented in the image.

[0015] According to another aspect of the embodiment, a new image can be generated by placing a new object in an area represented in an image while preserving the shape of the area. [Brief description of the drawings]

[0016] [Figure 1] FIG. 1 is a block diagram showing an example of the configuration of an image processing system according to an embodiment. [Diagram 2]FIG. 2 is a flowchart illustrating an example of processing by the server according to the embodiment. [Diagram 3] FIG. 3 is a flowchart showing an example of an erasure process by the server according to the embodiment. [Figure 4] FIG. 4 is a flowchart illustrating an example of an arrangement process by the server according to the embodiment. [Diagram 5] FIG. 5 is a flowchart illustrating an example of a synthesis process performed by the server according to the embodiment. [Figure 6] FIG. 6 is a diagram showing an example of an image to be erased according to the embodiment. [Figure 7] FIG. 7 is a diagram showing an example of an erasure target setting image according to the embodiment. [Figure 8] FIG. 8 is a diagram illustrating an example of an object-erased image according to the embodiment. [Figure 9] FIG. 9 is a diagram illustrating an example of a feature detection image for object placement according to the embodiment. [Figure 10] FIG. 10 is a diagram showing an example of a reference image according to the embodiment. [Figure 11] FIG. 11 is a diagram illustrating an example of a retention target setting image according to the embodiment. [Figure 12] FIG. 12 is a diagram illustrating an example of an object arrangement image according to the embodiment. [Figure 13] FIG. 13 is a diagram illustrating an example of a synthesis target image according to the embodiment. [Figure 14] FIG. 14 is a diagram illustrating an example of a composite image according to the embodiment. [Figure 15] FIG. 15 is a diagram illustrating an example of an edge-detected image according to the embodiment. [Figure 16] FIG. 16 is a diagram illustrating an example of a boundary setting image according to the embodiment. [Figure 17] FIG. 17 is a diagram illustrating an example of a blending image according to the embodiment. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS

[0017] [Embodiment] Hereinafter, some embodiments will be described with reference to the drawings. Note that the scale of each part in each drawing used in the following description of the embodiments may be changed as appropriate. Also, for the sake of explanation, each drawing used in the following description of the embodiments may omit configurations.

[0018] (Configuration example) FIG. 1 is a block diagram showing an example of the configuration of an image processing system S. The image processing system S is a system that generates images using a machine learning model.

[0019] A machine learning model is a program module generated by machine learning training data. The machine learning model generates data based on input data and outputs the generated data.

[0020] An image is a picture drawn on a two-dimensional plane represented by a coordinate system of x and y axes. The term "image" includes the meaning of image data representing an image, unless it is explicitly stated that the image is an image displayed on a display device. Therefore, the term "image" can be read as image data representing an image.

[0021] The image processing system S includes a server 1 and a terminal 2. The server 1 and the terminal 2 are connected to each other so as to be able to communicate freely with each other via a network NW. The network NW is composed of one or more networks among various networks such as the Internet, a mobile communication network, and a LAN (Local Area Network). The one or more networks may include a wireless network or a wired network. Although one terminal 2 is illustrated in FIG. 1, the image processing system S may include multiple terminals 2.

[0022] The server 1 is a device that processes an image that represents an area. The area is a three-dimensional space. The space is a space enclosed by a wall or the like, but may be an open space. Here, an area inside a property will be described as an example. The property may be a residential property in various buildings such as an apartment, condominium, and detached house, or a non-residential property such as an office. The residential property may be a rental property or a property for sale. In the case of a residential property, the area inside the property is an area such as a room or a living room, but is not limited to these. The server 1 may be a server on the cloud. An example of the configuration of the server 1 will be described later. The server 1 is an example of an image processing device that processes images.

[0023] The terminal 2 is a device having an input function, a display function, a communication function, etc. For example, the terminal 2 is a PC (Personal Computer), a smartphone, a tablet terminal, etc., but is not limited to these. For example, the terminal 2 is a terminal of a user of a real estate company, but may be a terminal of any user.

[0024] An example of the configuration of the server 1 will be described. The server 1 includes a processing circuit 11, a main memory 12, an auxiliary storage device 13, and a communication interface 14. The processing circuit 11, the main memory 12, the auxiliary storage device 13, and the communication interface 14 are connected to each other via a bus or the like so as to be able to input and output signals. In Fig. 1, the interface is written as "I / F".

[0025] The processing circuit 11 corresponds to the central part of the server 1. The processing circuit 11 constitutes the computer of the server 1. The processing circuit 11 includes one or more circuits that execute multiple processes by multiple functions. For example, the circuit is a processor, an ASIC (Application Specific Integrated Circuit) or an FPGA (Field-Programmable Gate Array), but is not limited thereto. For example, the processor is a CPU (Central Processing Unit) or a GPU (Graphics Processing Unit), but is not limited thereto. The processing circuit 11 loads an image processing program that is pre-stored in the main memory 12 or the auxiliary storage device 13 into the main memory 12. The image processing program is a program that can cause the processing circuit 11 to execute processes by each unit described later. The processing circuit 11 executes the image processing program loaded into the main memory 12, thereby enabling various processes to be executed.

[0026] The main memory 12 corresponds to the main storage portion of the server 1. The main memory 12 includes a nonvolatile memory area and a volatile memory area. The main memory 12 stores an operating system or a program in the nonvolatile memory area. The main memory 12 uses the volatile memory area as a work area where data is appropriately rewritten by the processing circuit 11. For example, the main memory 12 includes a ROM (Read Only Memory) as a nonvolatile memory area. For example, the main memory 12 includes a RAM (Random Access Memory) as a volatile memory area. The main memory 12 may store an image processing program.

[0027] The auxiliary storage device 13 corresponds to the auxiliary storage portion of the server 1. The auxiliary storage device 13 includes one or more storage devices. The storage devices are, but are not limited to, EEPROM (registered trademark) (Electric Erasable Programmable Read-Only Memory), HDD (Hard Disc Drive), SSD (Solid State Drive), flash memory, etc. The auxiliary storage device 13 stores the above-mentioned image processing program, data used by the processing circuit 11 in performing various processes, and data generated by the processing in the processing circuit 11.

[0028] The auxiliary storage device 13 includes an image storage area 131. The image storage area 131 stores a plurality of images. The image storage area 131 is an example of a storage unit that stores images.

[0029] The image storage area 131 can store an image to be erased. The image to be erased is an image from which an object is to be erased. The image to be erased is an image representing an area in which an object is placed. The image to be erased is an image of a photograph taken of the area in which an object is placed. For example, the area in which an object is placed is an area within a property in which an individual is living. The image to be erased is an image transmitted from the terminal 2 to the server 1.

[0030] An object is something that has a shape. For example, an object is something that can be moved from an area. Movable objects include not only objects that are not fixed to walls that form an area, but also objects that are fixed to walls that form an area but can be removed. In this example, the object is furniture, electrical appliances, lighting fixtures, curtains, or objects, but is not limited to these. The object may form an area. In this example, the object is a window or a floor, but is not limited to these. In the following, the expression "area where an object is placed" is intended to mean an area where a movable object such as furniture is placed. The expression "area where no object is placed" is intended to mean an area where a movable object such as furniture is not placed. The movable object is an object different from the object that forms the area.

[0031] The image storage area 131 can store an erasure target setting image. The erasure target setting image is an image in which a mask is drawn on one or more objects to be erased in the erasure target image. The objects to be erased are objects to be erased in the erasure target image. The objects to be erased are unnecessary objects in the erasure target image. Erasing an object includes the meaning of not leaving the object and making the object invisible. The type of the object to be erased may be set via the terminal 2. Generating the erasure target setting image is an example of setting one or more objects to be erased in the erasure target image. The erasure target setting image is an example of setting the objects to be erased.

[0032] An object-erased image can be stored in the image storage area 131. The object-erased image is an image in which the object to be erased has been erased from the image to be erased.

[0033] The image storage area 131 can store a feature detection image for object erasure. The feature detection image for object erasure is an image showing geometric features detected from the object erasure image. The geometric features are geometric features that can be detected from an image. For example, the geometric features are, but are not limited to, boundary lines in an image of a plane that forms a floor, a wall, a ceiling, etc., and line segments of figures in an image of a door, a window, etc. The line segments may include straight lines or curved lines. Since the area in the property includes many straight lines, it is preferable that the geometric features include straight lines. Here, a straight line is used as an example of a geometric feature. The feature detection image for object erasure shows the shape of an area formed by the geometric features, and is therefore used to generate an object erasure image while retaining the shape of an area represented by an image to be erased. For example, the shape of an area formed by the geometric features is, but is not limited to, the layout of a room.

[0034] The image storage area 131 can store an image to be placed. The image to be placed is an image in which an object is to be placed. The image to be placed is an image representing an area. For example, the image to be placed is an object-erasing image.

[0035] The image to be placed is not limited to the object-erased image. In the case of an unoccupied property, the server 1 does not need to generate an object-erased image based on the image to be erased. Therefore, the image to be placed may be an image of a photograph of an area. For example, the area is an area in an unoccupied property where furniture, etc. are not placed. In this case, the image to be placed is an image transmitted from the terminal 2 to the server 1.

[0036] The image storage area 131 can store a feature detection image for object placement. The feature detection image for object placement is an image showing geometric features detected from the placement target image. The geometric features are as described above. The feature detection image for object placement shows the shape of an area formed by the geometric features, and is therefore used to generate an object placement image while maintaining the shape of an area represented by the placement target image.

[0037] The image storage area 131 can store a reference image. The reference image is an image that represents an area in which an object is arranged. The reference image is an image that is used as a reference for generating an object arrangement image, which will be described later. The reference image may be an image transmitted from the terminal 2 to the server 1. The image transmitted from the terminal 2 to the server 1 may be an image of a photograph, or may be a generated image. Hereinafter, the reference image transmitted from the terminal 2 to the server 1 is also referred to as a first reference image. The reference image may be an image generated using an image generation model for the reference image, which will be described later. Hereinafter, the reference image generated using an image generation model for the reference image is also referred to as a second reference image.

[0038] The image storage area 131 can store a retention target setting image. The retention target setting image is an image in which a mask is drawn on one or more retention target objects in the arrangement target image. The retention target objects are objects to be retained in the arrangement target image. The retention target objects are objects that are not desired to be redrawn in the arrangement target image. Retaining an object includes the meaning of leaving the object as it is and not redrawing the object. The type of the retention target object may be set via the terminal 2. Generating the retention target setting image is an example of setting one or more retention target objects in the arrangement target image. The retention target setting image is an example of setting the retention target object.

[0039] The image storage area 131 can store an object arrangement image. An object arrangement image is an image that represents an area in which one or more objects that are not arranged in the arrangement target image are arranged. An object arrangement image is an image in which an object suitable for this area is arranged while maintaining the shape of the area represented in the arrangement target image.

[0040] The image storage area 131 can store a compositing target setting image. The compositing target setting image is an image in which a mask is drawn on one or more compositing target objects in an object arrangement image. The compositing target objects are objects to be composited into the arrangement target image. The compositing target objects are objects newly placed in the object arrangement image. In other words, the compositing target objects are objects that are placed in an area represented by the object arrangement image but are not placed in the arrangement target image. Generating a compositing target setting image is an example of setting one or more compositing target objects in the object arrangement image. The compositing target setting image is an example of setting the compositing target objects.

[0041] The image storage area 131 can store a composite image. A composite image is an image in which an object is composited into a placement target image. A composite image is an image that represents an area in which one or more objects that are not placed in the placement target image are placed. An object that is composited into a placement target image to generate a composite image is an object that is not placed in the placement target image. The composite object is an object to be composited that has a mask drawn in the composite target setting image. A composite image is an image in which an object suitable for an area is placed while maintaining the shape of the area represented in the placement target image.

[0042] The image storage area 131 can store an edge detection image. The edge detection image is an image showing edges detected from the composite image. The edge includes the meaning of a contour line. For example, the edges detected from the composite image are the edges of each object. Since the edge detection image shows the shape of an object with an edge, it is used to generate a blending image while maintaining the shape of each object placed in the area represented by the composite image.

[0043] The image memory area 131 can store an outer edge setting image. The outer edge setting image is an image in which a mask is drawn on the outer edge of one or more objects that are composited into the placement target image to generate a composite image. The outer edge of an object is the boundary between the object and the placement target image into which the object is composited. Generating an outer edge setting image is an example of setting the outer edge of one or more objects that are composited into the placement target image to generate a composite image. The outer edge setting image is an example of setting an outer edge.

[0044] The image storage area 131 can store a blending image. A blending image is an image that represents an area in which one or more objects that are not placed in the placement target image are placed. A blending image is an image in which the outer edge is blended in the composite image. Blending the outer edge includes making the color of the boundary between the object and the placement target image into which the object is combined closer to a natural state. A blending image is an image in which an object suitable for this area is placed while maintaining the shape of the area represented in the placement target image.

[0045] Here, an example has been described in which the image storage area 131 stores the above-mentioned images, but the present invention is not limited to this. Each image may be stored in a different image storage area for each type. In this example, each image storage area included in the auxiliary storage device 13 is an example of a storage unit. A part of each image may be stored in the main memory 12 instead of the auxiliary storage device 13. In this example, the main memory 12 is an example of a storage unit.

[0046] The auxiliary storage device 13 includes a machine learning model storage area 132. The machine learning model storage area 132 stores a plurality of machine learning models. The machine learning model storage area 132 is an example of a storage unit that stores machine learning models.

[0047] The machine learning model storage area 132 can store an object detection model that detects an object in an image. The object detection model is a machine learning model generated by machine learning training data. The object detection model generates a detection result of an object detected in an input image based on the input image, and outputs the detection result. For example, the detection result includes an object name of the detected object. The object detection model may be a method based on zero-shot object detection. The object detection model may be a method based on instance segmentation. For example, the object detection model is Detic (Detector with Image Classes), but is not limited thereto.

[0048] The machine learning model storage area 132 can store a geometric feature detection model that detects geometric features in an image. The geometric feature detection model is a machine learning model generated by machine learning learning data. The geometric feature detection model generates an image indicating a geometric feature detected from an input image based on an input image, and outputs the generated image. When the geometric feature is a straight line, for example, the geometric feature detection model is, but is not limited to, MLSD (Mobile Line Segment Detection).

[0049] The machine learning model storage area 132 can store an edge detection model that detects edges in an image. The edge feature detection model is a machine learning model generated by machine learning learning data. The edge feature detection model generates an image showing edges detected from an input image based on an input image, and outputs the generated image. For example, the edge detection model is Canny, but is not limited to this.

[0050] The machine learning model storage area 132 can store an image generation model for object elimination that generates an object-eliminated image. The image generation model for object elimination is a program module generated by machine learning learning of learning data. The learning data can include a plurality of images representing an area where an object is not placed. That is, the image generation model for object elimination is generated by machine learning an image in which the shape of an area is known, such as an image representing an area where an object is not placed. Although the diffusion model (Stable Diffusion) is used as an example of the image generation model for object elimination, the image generation model for object elimination is not limited to the diffusion model. For example, the diffusion model is Stable Diffusion v1.5_inpainting. The image generation model for object elimination generates an object-eliminated image by i2i (image to image) using an inpainting function based on an input image, and outputs the object-eliminated image. As described below, the image generation model for object elimination can incorporate a combination of zero or more machine learning models for fine tuning and zero or more machine learning models for control as an extended model.

[0051] A machine learning model for fine tuning for fine tuning the diffusion model can be incorporated as an extension model into the diffusion model for object elimination. The machine learning model for fine tuning is a program module generated by machine learning the learning data. The learning data can include a plurality of images representing an area where an object is not placed. That is, the machine learning model for fine tuning is generated by machine learning an image in which the shape of the area is known, such as an image representing an area where an object is not placed. The machine learning model for fine tuning attempts to draw an area where an object is not placed, regardless of the input. The machine learning model for fine tuning attempts to generate an image representing an area where an object is not placed from mere noise, so it can also be used in t2i. The machine learning model for fine tuning attempts to generate an image representing an area where an object is not placed from noise applied over an area represented by an input image, rather than from mere noise, so it can also be used in i2i. Therefore, the machine learning model for fine tuning is a model that outputs an image representing an area where an object is not placed based on at least one of the input text data and the image representing an area where an object is placed. In this way, a machine learning model for fine tuning that is better at object elimination is incorporated into the diffusion model for object elimination. The machine learning model for fine tuning is used to draw a target area. For example, the machine learning model for fine tuning is, but is not limited to, LoRA (Low-Rank Adaptation) or LoCon (LoRA for Convolution network).

[0052] A machine learning model for control for controlling the generation of an image by the diffusion model can be incorporated as an extension model into the diffusion model for removing objects. For example, the machine learning model for control is ControlNet, but is not limited to this. The machine learning model for control has a function of detecting geometric features such as MLSD. The machine learning model for control is a program module generated by machine learning the learning data. The learning data can include a plurality of images showing the geometric features of an area where no object is placed and a plurality of images representing an area where no object is placed. The image showing the geometric features of an area where no object is placed only needs to show geometric features that allow the shape of the area to be understood, such as a floor plan. Therefore, the image showing the geometric features of an area where no object is placed can be easily generated by a geometric feature detection model such as MLSD based on the image showing the area where no object is placed, but is not limited to this. The image showing the geometric features of an area where no object is placed may be a freehand drawing of the geometric features. For example, the learning data may include 100 images each of an image showing the geometric features of an area where no object is placed and an image showing the area where no object is placed, paired together. By machine learning two types of images in pairs, a method of drawing an area from geometric features is machine-learned using a neural network. The control machine learning model is a model that outputs an image that retains geometric features and represents an area where no object is placed, based on an image that indicates the input geometric features. In this way, a model having a function of detecting geometric features that is good at retaining the shape of an area is incorporated as a control machine learning model in the diffusion model for object elimination. In this way, an image that indicates geometric features is input to a model having a function of detecting geometric features as a control machine learning model, so that an image that represents an area that retains geometric features is easily generated. Furthermore, by combining a model having a function of detecting geometric features as a control machine learning model, the elimination of objects is easily generated.

[0053] The machine learning model storage area 132 can store an image generation model for object placement that generates an object placement image. The image generation model for object placement is a program module generated by machine learning learning of learning data. The learning data can include a plurality of images representing an area in which an object is placed. That is, the image generation model for object placement is generated by machine learning learning an image in which an object of a correct size is placed in an area, such as an image representing an area in which an object is placed. Although a diffusion model is used as an example of an image generation model for object placement, the image generation model for object placement is not limited to the diffusion model. For example, the diffusion model is Stable Diffusion v1.5. As described below, the image generation model for object placement can incorporate a combination of zero or more machine learning models for fine tuning and zero or more machine learning models for control as an extended model.

[0054] In a first arrangement mode, the image generation model for object placement refers to the input feature detection image for object placement, generates an object placement image by t2i (text to image) based on the input text data, and outputs the object placement image. For example, the text data includes sentence data about the object placement image. In a second arrangement mode, the image generation model for object placement refers to the input feature detection image for object placement, generates an object placement image by i2i based on the input reference image, and outputs the object placement image. In a third arrangement mode, the image generation model for object placement refers to the input feature detection image for object placement, generates an object placement image by i2i using an inpainting function based on the input retention target setting image, and outputs the object placement image. The image generation model for object placement inpaints a portion of the retention target setting image other than the object to be retained.

[0055] A machine learning model for fine tuning for fine tuning the diffusion model can be incorporated as an extension model into the diffusion model for object placement. The machine learning model for fine tuning is a program module generated by machine learning the learning data. The learning data can include a plurality of images representing an area in which an object is placed. That is, the machine learning model for fine tuning is generated by machine learning an image in which an object of a correct size is placed relative to an area, such as an image representing an area in which an object is placed. The machine learning model for fine tuning attempts to draw an area in which an object is placed, regardless of the input. The machine learning model for fine tuning attempts to generate an image representing an area in which an object is placed from mere noise, so it can also be used in t2i. The machine learning model for fine tuning attempts to generate an image representing an area in which an object is placed from noise applied over an area represented by an input image, rather than from mere noise, so it can also be used in i2i. Therefore, the machine learning model for fine tuning is a model that outputs an image representing an area in which an object is placed based on at least one of the input text data and an image representing an area in which an object is not placed. In this way, a machine learning model for fine tuning that is better at object placement is incorporated into the diffusion model for object placement. The machine learning model for fine tuning is used to draw a target area. For example, the machine learning model for fine tuning is, but is not limited to, LoRA or LoCon.

[0056] The diffusion model for object placement can incorporate a machine learning model for control as an extended model for controlling the generation of an image by the diffusion model. For example, the machine learning model for control is ControlNet, but is not limited thereto. In one example, the machine learning model for control has a function of detecting geometric features such as MLSD. In this example, the machine learning model for control is a program module generated by machine learning the learning data. The learning data can include a plurality of images showing the geometric features of an area where no object is placed and a plurality of images representing an area where no object is placed, similar to the machine learning model for control in the diffusion model for object elimination described above. The machine learning model for control is a model that outputs an image that retains the geometric features and represents an area where no object is placed, based on an image that indicates the input geometric features. In this way, the diffusion model for object placement incorporates a model having a function of detecting geometric features that is good at retaining the shape of the area as a machine learning model for control. In this way, by inputting an image showing the geometric features into a model having a function of detecting geometric features as a machine learning model for control, an image representing an area that retains the geometric features is easily generated. Furthermore, by combining the model having a function of detecting geometric features as a machine learning model for control with the machine learning model for fine tuning described above, the placement of objects is easily generated. In another example, the machine learning model for control has a function of converting an area where an object is not placed into an area where an object is placed. In this example, the machine learning model for control is a program module generated by machine learning learning of learning data. The learning data may include a plurality of images representing an area where an object is placed. The machine learning model for control outputs an image representing an area where an object is placed based on an input image representing an area where an object is not placed. In this way, a model having a function of converting an area where an object is not placed into an area where an object is placed is incorporated as a machine learning model for control in the diffusion model for object placement.

[0057] The machine learning model storage area 132 can store an image generation model for a reference image. The image generation model for a reference image is a program module generated by machine learning the learning data. The learning data can include a plurality of images representing an area in which an object is arranged. Although a diffusion model is used as an example of the image generation model for a reference image, the image generation model for a reference image is not limited to the diffusion model. For example, the diffusion model is Stable Diffusion v1.5. The image generation model for a reference image generates a second reference image by t2i based on input text data, and outputs the second reference image. For example, the text data includes data of a sentence about the reference image. The image generation model for a reference image can incorporate zero or more machine learning models for fine tuning as an extension model, as described below.

[0058] A machine learning model for fine tuning for fine tuning the diffusion model can be incorporated as an extension model into the diffusion model for the reference image. The machine learning model for fine tuning is a program module generated by machine learning the learning data. The learning data can include a plurality of images representing an area in which an object is placed. That is, the machine learning model for fine tuning is generated by machine learning an image in which an object of a correct size is placed relative to an area, such as an image representing an area in which an object is placed. The machine learning model for fine tuning attempts to draw an area in which an object is placed, regardless of the input. The machine learning model for fine tuning attempts to generate an image representing an area in which an object is placed from mere noise, so it can also be used in t2i. The machine learning model for fine tuning attempts to generate an image representing an area in which an object is placed from noise applied over an area represented by an input image, rather than from mere noise, so it can also be used in i2i. Therefore, the machine learning model for fine tuning is a model that outputs an image representing an area in which an object is placed based on at least one of the input text data and an image representing an area in which an object is not placed. In this way, the diffusion model for the reference image is incorporated with a machine learning model for fine tuning that is better at object placement. The machine learning model for fine tuning is used to draw a target area. For example, the machine learning model for fine tuning is, but is not limited to, LoRA or LoCon.

[0059] The machine learning model storage area 132 can store an image generation model for synthesis. The image generation model for synthesis is a program module generated by machine learning learning data. The learning data can include a plurality of images representing an area in which an object is arranged. Although the diffusion model is used as an example of the image generation model for synthesis, the image generation model for synthesis is not limited to the diffusion model. For example, the diffusion model is Stable Diffusion v1.5_inpainting. The image generation model for synthesis refers to an input edge detection image, generates a blended image by i2i using an inpainting function based on the input outer edge setting image, and outputs the blended image. As described below, the image generation model for synthesis can incorporate a combination of zero or more machine learning models for fine tuning and zero or more machine learning models for control as an extended model.

[0060] The diffusion model for synthesis may incorporate a fine-tuning machine learning model for fine-tuning the diffusion model as an extended model. The fine-tuning machine learning model is a program module generated by machine learning training data. The training data may include a plurality of images representing an area in which an object is placed. That is, the fine-tuning machine learning model is generated by machine learning an image in which an object of a correct size is placed relative to an area, such as an image representing an area in which an object is placed. The fine-tuning machine learning model is a model that outputs an image representing an area in which an object is placed, based on an input image representing an area in which no object is placed. In this way, the diffusion model for synthesis incorporates a fine-tuning machine learning model that is better at object placement. The fine-tuning machine learning model is used to draw a target area. For example, the fine-tuning machine learning model is LoRA or LoCon, but is not limited thereto.

[0061] A machine learning model for control for controlling the generation of an image by the diffusion model can be incorporated as an extended model into the diffusion model for synthesis. For example, the machine learning model for control is ControlNet, but is not limited to this. In one example, the machine learning model for control has an edge detection function such as Canny. In this example, the machine learning model for control is a program module generated by machine learning the learning data. The learning data can include a plurality of images showing the edges of an area where an object is not placed and a plurality of images representing an area where an object is not placed. The image showing the edges of an area where an object is not placed may be one that allows the edges of the area to be recognized. Therefore, the image showing the edges of an area where an object is not placed can be easily generated by an edge detection model such as Canny based on the image representing the area where an object is not placed, but is not limited to this. The image showing the edges of an area where an object is not placed may be one in which the edges are drawn freehand. For example, the learning data may include 100 images each of an image showing the edges of an area where an object is not placed and an image representing an area where an object is not placed, which are paired. By machine learning two types of images in pairs, a method of drawing an area from an edge is machine learned using a neural network. The machine learning model for control is a model that outputs an image that retains edges and represents an area where an object is not placed, based on an image showing an input edge. In this way, a model with an edge detection function that is good at retaining objects is incorporated as a machine learning model for control in the diffusion model for synthesis. The reason for using a model with an edge detection function as a machine learning model for control is to distinguish between the contour of an object and the lines of incongruity caused by image synthesis. The incongruity caused by image synthesis does not appear as a clear line. Therefore, by generating an image of the edge of an object, which is a clear line, as the machine learning model for control, it is possible to eliminate the incongruity caused by image synthesis. For example, ControlNet has a parameter called strength, and if it is set to a threshold value or higher that makes the edge of the object visible, the incongruity is not taken into account and is drawn as the background of the area.In another example, the control machine learning model has a function of converting an area where an object is not placed into an area where an object is placed. In this example, the control machine learning model is a program module generated by machine learning training data. The training data may include a plurality of images representing an area where an object is placed. The control machine learning model outputs an image representing an area where an object is placed based on an input image representing an area where an object is not placed. In this way, a model having a function of converting an area where an object is not placed into an area where an object is placed is incorporated as a control machine learning model in the synthesis diffusion model.

[0062] Here, an example in which the machine learning model storage area 132 stores the above-mentioned machine learning models has been described, but the present invention is not limited to this. Each machine learning model may be stored in a different machine learning model storage area for each type. In this example, each machine learning model storage area included in the auxiliary storage device 13 is an example of a storage unit.

[0063] The communication interface 14 includes various interfaces that communicatively connect the server 1 to other devices using a communication protocol defined by the network NW.

[0064] The hardware configuration of the server 1 is not limited to the above-mentioned configuration. The server 1 allows the above-mentioned components to be omitted or changed and new components to be added as appropriate.

[0065] Each unit realized by the processing circuit 11 will be described. The processing circuit 11 realizes an erasure processing unit 111, an arrangement processing unit 112, and a synthesis processing unit 113. Each unit realized by the processing circuit 11 can also be referred to as each function. Each unit realized by the processing circuit 11 can also be referred to as being realized by a control unit including the processing circuit 11 and the main memory 12. The erasure processing unit 111 executes the erasure processing described later. The placement processing unit 112 executes the placement process described below. The synthesis processing unit 113 executes synthesis processing, which will be described later.

[0066] (Example of operation) Next, an example of the operation of the server 1 configured as above will be described. Note that the process steps described below are merely examples, and each process may be modified as much as possible. In addition, steps may be omitted, replaced, or added as appropriate for the process steps described below depending on the embodiment.

[0067] FIG. 2 is a flowchart showing an example of a process performed by the server 1.

[0068] The erasure processing unit 111 executes the erasure process (step S1). The erasure process includes generating an object-erased image based on an image to be erased, using an image generation model for object erasure. A typical example of the erasure process will be described later.

[0069] The placement processing unit 112 executes the placement process (step S2). The placement process includes generating an object placement image using an image generation model for object placement based on the placement target image. When the processing circuit 11 executes the placement process after executing the erasure process, the placement target image is an object-erased image. The processing circuit 11 may omit the erasure process. In this case, the placement target image is not an object-erased image, but an image of a photograph of the area. A typical processing example of the placement process will be described later.

[0070] The synthesis processing unit 113 executes synthesis processing (step S3). The synthesis processing includes generating a synthetic image based on the arrangement target image and the object arrangement image. The synthesis processing includes generating a blending image based on the synthetic image using an image generation model for synthesis. A typical processing example of the synthesis processing will be described later.

[0071] 2 shows an example in which the processing circuit 11 executes an erasure process, a placement process, and a compositing process, but is not limited to this. The processing circuit 11 executes an erasure process, but may not execute a placement process and a compositing process. The processing circuit 11 may execute a placement process and a compositing process without executing an erasure process. The processing circuit 11 executes at least a placement process, but may not execute a compositing process. In the compositing process, the processing circuit 11 executes generation of a composite image, but may not execute generation of a blending image.

[0072] The processing circuit 11 transmits an output image generated by the server 1 to the terminal 2 via the communication interface. For example, the output image is an object-erased image or an image representing an area in which one or more objects not placed in the placement target image are placed, but may be an image other than these generated by the server 1. An image representing an area in which one or more objects not placed in the placement target image are placed is an object-placed image, a composite image, or a blending image. The terminal 2 receives the output image from the server 1. The terminal 2 causes a display device to display an image based on the output image from the server 1.

[0073] FIG. 3 is a flowchart showing an example of the erasure process by the server 1.

[0074] The erasure processing unit 111 acquires an image to be erased from the image storage area 131 (step S101).

[0075] The erasure processing unit 111 detects an object in the image to be erased (step S102). In step S102, for example, the erasure processing unit 111 detects an object in the image to be erased by using an object detection model. Here, the erasure processing unit 111 inputs the image to be erased to the object detection model. The object detection model generates a detection result of the object detected in the image to be erased based on the image to be erased, and outputs the detection result. The erasure processing unit 111 acquires the detection result output from the object detection model. The erasure processing unit 111 detecting an object in the image to be erased includes the erasure processing unit 111 inputting the image to be erased to the object detection model. The erasure processing unit 111 detecting an object in the image to be erased includes the erasure processing unit 111 acquiring the detection result output from the object detection model.

[0076] The erasure processing unit 111 generates an erasure target setting image based on object detection in the erasure target image (step S103). In step S103, for example, the erasure processing unit 111 draws a mask on one or more objects to be erased in the erasure target image based on the detection result in the erasure target image. The erasure processing unit 111 can draw a mask on one or more objects to be erased in the erasure target image based on the type of object to be erased set via the terminal 2. The erasure processing unit 111 generates an erasure target setting image based on the drawing of the mask.

[0077] The erasure processing unit 111 generates an object-erased image based on the erasure target image and the erasure target setting image (step S104). In step S104, for example, the erasure processing unit 111 generates an object-erased image using an image generation model for object erasure. Here, the erasure processing unit 111 inputs the erasure target image and the erasure target setting image to the image generation model for object erasure. The image generation model for object erasure refers to the erasure target setting image, generates an object-erased image based on the erasure target image, and outputs the object-erased image. For example, the image generation model for object erasure inpaints a part of the object to be erased in the erasure target image to generate an object-erased image. As described above, the image generation model for object erasure incorporates a fine-tuning machine learning model that is better at object erasure. The image generation model for object erasure can obtain the effect of maintaining the shape of the area by using the fine-tuning machine learning model. This is because the fine-tuning machine learning model is generated by machine learning an image in which the shape of the area is known. The image generation model for object erasure can generate an object-erased image using information such as what the shape of the area is by using the fine-tuning machine learning model. The image generation model for object erasure looks at the entire image and redraws only the part of the object to be erased, but by using a machine learning model for fine tuning, it is possible to draw a correct straight line for a part that is hidden by an unnecessary object but should originally be a straight line. The erasure processing unit 111 acquires an object-erased image output from the image generation model for object erasure. The erasure processing unit 111 generating an object-erased image includes the erasure processing unit 111 inputting an image to be erased and an image to be erased set to the image generation model for object erasure. The erasure processing unit 111 generating an object-erased image includes the erasure processing unit 111 acquiring an object-erased image output from the image generation model for object erasure. The erasure processing unit 111 saves the object-erased image in the image storage area 131.

[0078] The erasure processing unit 111 determines whether or not to confirm the object-erased image (step S105). In step S105, for example, the erasure processing unit 111 determines that the object-erased image is confirmed if the object to be erased is erased in the object-erased image. The degree of erasure can be set appropriately.

[0079] When the erasure processing unit 111 determines that the object-erased image is to be confirmed (step S105, YES), the process ends. When the erasure processing unit 111 determines that the object-erased image is not to be confirmed (step S105, NO), the process transitions from step S105 to step S106.

[0080] The erasure processing unit 111 generates a feature detection image for object erasure based on the geometric feature detection in the object-erased image (step S106). In step S106, for example, the erasure processing unit 111 generates a feature detection image for object erasure using a geometric feature detection model. Here, the erasure processing unit 111 inputs the object-erased image to the geometric feature detection model. The geometric feature detection model generates a feature detection image for object erasure based on the object-erased image, and outputs the feature detection image for object erasure. The erasure processing unit 111 acquires the feature detection image for object erasure output from the geometric feature detection model. The erasure processing unit 111 generating the feature detection image for object erasure includes the erasure processing unit 111 inputting the object-erased image to the geometric feature detection model. The erasure processing unit 111 generating the feature detection image for object erasure includes the erasure processing unit 111 acquiring the feature detection image for object erasure output from the geometric feature detection model.

[0081] The erasure processing unit 111 generates a new object-erased image based on the feature detection image for object erasure, the object-erased image from which the feature detection image for object erasure was generated, and the erasure target setting image (step S107). Hereinafter, the object-erased image from which the feature detection image for object erasure was generated is also referred to as the original object-erased image. The newly generated object-erased image is also referred to as the new object-erased image. In step S107, for example, the erasure processing unit 111 generates the object-erased image using an image generation model for object erasure. Herein, the erasure processing unit 111 inputs the feature detection image for object erasure and the original object-erased image to the image generation model for object erasure. The image generation model for object erasure refers to the feature detection image for object erasure and the erasure target setting image, generates a new object-erased image based on the original object-erased image, and outputs the new object-erased image. For example, the image generation model for object erasure inpaints the part of the object to be erased in the original object-erased image, and generates the object-erased image. As described above, a machine learning model for fine tuning that is better at object erasure is incorporated into the image generation model for object erasure. As described above, the image generation model for object erasure can obtain the effect of maintaining the shape of the region by using the machine learning model for fine tuning. As described above, the image generation model for object erasure incorporates a model having a function of detecting geometric features as a machine learning model for control. By using this machine learning model for control, the image generation model for object erasure can control the geometric features by the feature detection image for object erasure and maintain the shape of the region. By combining the machine learning model for fine tuning and this machine learning model for control, the image generation model for object erasure can draw a correct boundary line for a part that should originally be a straight line by the machine learning model for fine tuning and a part that is controlled to be a straight line by the machine learning model for control. The image generation model for object erasure may also refer to the erasure target setting image and generate a new object erasure image based on the original object erasure image. The erasure processing unit 111 acquires the new object erasure image output from the image generation model for object erasure.The erasure processing unit 111 generating a new object-erased image includes the erasure processing unit 111 inputting the feature detection image for object erasure and the original object-erased image to the image generation model for object erasure. The erasure processing unit 111 generating an object-erased image includes the erasure processing unit 111 acquiring a new object-erased image output from the image generation model for object erasure. The erasure processing unit 111 stores the newly generated object-erased image in the image storage area 131. Note that the erasure processing unit 111 may generate a new object-erased image based on the feature detection image for object erasure and the original object-erased image without using the erasure target setting image. In this example, the image generation model for object erasure may refer to the feature detection image for object erasure and generate a new object arrangement image by i2i based on the original object-erased image.

[0082] As described above, the erasure processing unit 111 can generate an erasure target setting image based on object detection in the erasure target image, and generate an object-erased image based on the erasure target image and the erasure target setting image. By performing such processing, the erasure processing unit 111 can automatically generate an object-erased image without requiring the user to perform an operation of specifying an object to be erased in the image to be erased.

[0083] As described above, the erasure processing unit 111 can generate a feature detection image for object erasure based on geometric feature detection in the object-erased image, and generate a new object-erased image based on at least the feature detection image for object erasure and the original object-erased image. In a typical example, the erasure processing unit 111 can generate a new object-erased image based on the feature detection image for object erasure, the original object-erased image, and the erasure target setting image. By using a feature detection image for object erasure, the erasure processing unit 111 can generate an object-erased image in which necessary furniture is not erased and unnecessary furniture is not left behind, while preserving the shape of the area represented by the image to be erased.

[0084] As described above, the erasure processing unit 111 can generate an object-erased image using an image generation model for object erasure incorporating one or both of a machine learning model for fine tuning and a machine learning model for control. By using such an image generation model for object erasure, the erasure processing unit 111 can generate an object-erased image in which necessary furniture is not erased and unnecessary furniture is not left behind, while preserving the shape of the area represented by the image to be erased.

[0085] FIG. 4 is a flowchart showing an example of the arrangement process by the server 1.

[0086] The arrangement processing unit 112 acquires an image to be arranged from the image storage area 131 (step S201).

[0087] The placement processing unit 112 generates a feature detection image for object placement based on the geometric feature detection in the placement target image (step S202). In step S202, for example, the placement processing unit 112 generates a feature detection image for object placement using a geometric feature detection model. Here, the placement processing unit 112 inputs the placement target image to the geometric feature detection model. The geometric feature detection model generates a feature detection image for object placement based on the placement target image and outputs the feature detection image for object placement. The placement processing unit 112 acquires the feature detection image for object placement output from the geometric feature detection model. The placement processing unit 112 generating the feature detection image for object placement includes the placement processing unit 112 inputting the placement target image to the geometric feature detection model. The placement processing unit 112 generating the feature detection image for object placement includes the placement processing unit 112 acquiring the feature detection image for object placement output from the geometric feature detection model.

[0088] The arrangement processing unit 112 determines whether or not the type of object to be held is set (step S203). If the type of object to be held is set (step S203, YES), the process proceeds from step S203 to step S204. If the type of object to be held is not set (step S203, NO), the process proceeds from step S203 to step S206.

[0089] The placement processing unit 112 detects an object in the placement target image (step S204). In step S204, for example, the placement processing unit 112 detects an object in the placement target image using an object detection model. Here, the placement processing unit 112 inputs the placement target image to the object detection model. The object detection model generates a detection result of the object detected in the placement target image based on the placement target image, and outputs the detection result. The placement processing unit 112 acquires the detection result output from the object detection model. The placement processing unit 112 detecting an object in the placement target image includes the placement processing unit 112 inputting the placement target image to the object detection model. The placement processing unit 112 detecting an object in the placement target image includes the placement processing unit 112 acquiring the detection result output from the object detection model.

[0090] The arrangement processing unit 112 generates a retention target setting image based on object detection in the arrangement target image (step S205). In step S205, for example, the arrangement processing unit 112 draws a mask on one or more objects to be held in the arrangement target image based on the detection result in the arrangement target image. The arrangement processing unit 112 can draw a mask on one or more objects to be held in the arrangement target image based on the type of the object to be held set via the terminal 2.

[0091] The placement processing unit 112 determines whether or not to use a reference image in generating the object placement image (step S206). Whether or not to use a reference image may be set via the terminal 2. When the placement processing unit 112 determines to use a reference image (step S206, YES), the process transitions from step S206 to step S207. When the placement processing unit 112 determines not to use a reference image (step S206, NO), the process transitions from step S206 to step S209.

[0092] The arrangement processing unit 112 determines whether or not there is a first reference image (step S207). If there is a first reference image (step S207, YES), the process proceeds from step S207 to step S209. If there is no first reference image (step S207, NO), the process proceeds from step S207 to step S208.

[0093] The placement processing unit 112 generates a second reference image (step S208). In step S208, for example, the placement processing unit 112 generates a reference image using an image generation model for a reference image. Here, the placement processing unit 112 inputs text data to the image generation model for a reference image. The text data may be data based on an input operation of the terminal 2. The image generation model for a reference image generates a second reference image based on the text data and outputs the second reference image. For example, the image generation model for a reference image generates the second reference image by t2i based on the text data. As described above, the image generation model for a reference image incorporates a machine learning model for fine tuning that is better at object placement. The machine learning model for fine tuning is generated by machine learning an image in which an object of a correct size is placed in a region. Therefore, the image generation model for a reference image can generate a second reference image in which an object of a correct ratio is placed in a region by using the machine learning model for fine tuning. The placement processing unit 112 acquires the second reference image output from the image generation model for a reference image. The placement processing unit 112 generating the second reference image includes the placement processing unit 112 inputting text data into an image generation model for the reference image. The placement processing unit 112 generating the second reference image includes the placement processing unit 112 acquiring the second reference image output from the image generation model for the reference image. The placement processing unit 112 saves the second reference image in the image storage area 131.

[0094] The placement processing unit 112 generates an object placement image based on the feature detection image for object placement (step S209). In step S209, for example, the placement processing unit 112 generates an object placement image using an image generation model for object placement. Here, the placement processing unit 112 inputs the feature detection image for object placement to the image generation model for object placement. The image generation model for object placement generates an object placement image by referring to the feature detection image for object placement, and outputs the object placement image. The placement processing unit 112 acquires the object placement image output from the image generation model for object placement. The placement processing unit 112 generating an object placement image includes the placement processing unit 112 inputting the feature detection image for object placement to the image generation model for object placement. The placement processing unit 112 generating an object placement image includes the placement processing unit 112 acquiring the object placement image output from the image generation model for object placement. The placement processing unit 112 saves the object placement image in the image storage area 131.

[0095] The first arrangement mode is a mode in which the retention target setting image and the reference image are not used. The arrangement processing unit 112 generates an object arrangement image based on the feature detection image for object arrangement and text data. In the first arrangement mode, the arrangement processing unit 112 inputs the feature detection image for object arrangement and the text data to the image generation model for object arrangement. The text data may be data based on the input operation of the terminal 2. The image generation model for object arrangement refers to the feature detection image for object arrangement, generates an object arrangement image based on the text data, and outputs the object arrangement image. For example, the image generation model for object arrangement generates an object arrangement image by t2i based on the text data. The arrangement processing unit 112 acquires the object arrangement image output from the image generation model for object arrangement. The arrangement processing unit 112 generating the object arrangement image includes the arrangement processing unit 112 inputting the feature detection image for object arrangement and the text data to the image generation model for object arrangement. The arrangement processing unit 112 generating the object arrangement image includes the arrangement processing unit 112 acquiring the object arrangement image output from the image generation model for object arrangement.

[0096] The second arrangement mode is a mode in which the retention target setting image is not used, but a reference image is used. The arrangement processing unit 112 generates an object arrangement image based on a feature detection image and a reference image for object arrangement. In the second arrangement mode, the arrangement processing unit 112 inputs a feature detection image and a reference image for object arrangement to an image generation model for object arrangement. The reference image may be a first reference image or a second reference image. The image generation model for object arrangement refers to the feature detection image for object arrangement, generates an object arrangement image based on the reference image, and outputs the object arrangement image. For example, the image generation model for object arrangement generates an object arrangement image by i2i based on the reference image. The arrangement processing unit 112 acquires an object arrangement image output from the image generation model for object arrangement. The arrangement processing unit 112 generating an object arrangement image includes the arrangement processing unit 112 inputting a feature detection image and a reference image for object arrangement to the image generation model for object arrangement. The arrangement processing unit 112 generating an object arrangement image includes the arrangement processing unit 112 acquiring an object arrangement image output from the image generation model for object arrangement. The placement processing unit 112 may generate an object placement image based on text data in addition to the feature detection image and the reference image for object placement.

[0097] The third arrangement mode is a mode in which the retention target setting image is used but the reference image is not used. The arrangement processing unit 112 generates an object arrangement image based on the feature detection image for object arrangement and the retention target setting image. In the third arrangement mode, the arrangement processing unit 112 inputs the feature detection image for object arrangement and the retention target setting image to the image generation model for object arrangement. The image generation model for object arrangement refers to the feature detection image for object arrangement, generates an object arrangement image based on the retention target setting image, and outputs the object arrangement image. For example, the image generation model for object arrangement inpaints a part other than the object to be retained in the retention target setting image to generate an object arrangement image. The area represented by the object arrangement image is an area in which the object to be retained is arranged. The arrangement processing unit 112 acquires the object arrangement image output from the image generation model for object arrangement. The generation of the object arrangement image by the arrangement processing unit 112 includes the input of the feature detection image for object arrangement and the retention target setting image by the arrangement processing unit 112 to the image generation model for object arrangement. The generation of an object arrangement image by the arrangement processing unit 112 includes the acquisition of an object arrangement image output from an image generation model for object arrangement by the arrangement processing unit 112. Note that the arrangement processing unit 112 may generate an object arrangement image based on text data in addition to the feature detection image for object arrangement and the retention target setting image.

[0098] As described above, the image generation model for object placement incorporates a fine-tuning machine learning model that is better at object placement. The fine-tuning machine learning model is generated by machine learning an image in which an object of a correct size is placed in a region. Therefore, by using the fine-tuning machine learning model, the image generation model for object placement can generate an object placement image in which objects are placed in a correct ratio in a region. As described above, the image generation model for object placement incorporates a model having a geometric feature detection function as a control machine learning model. By using this control machine learning model, the image generation model for object placement can control the geometric features by the feature detection image for object placement and maintain the shape of the region. As described above, the image generation model for object placement incorporates a model having a function of converting an area in which an object is not placed into an area in which an object is placed as a control machine learning model. By using this control machine learning model, the image generation model for object placement can more easily place objects.

[0099] As described above, the placement processing unit 112 can generate an object placement image based on a feature detection image for object placement. By using the feature detection image for object placement, the placement processing unit 112 can generate an object placement image in which a new object is placed in the placement target area while maintaining the shape of the area represented by the placement target image.

[0100] As described above, the placement processing unit 112 can generate an object placement image using an image generation model for object placement that incorporates a fine-tuning machine learning model that is better at object placement. By using such an image generation model for object placement, the placement processing unit 112 can generate an object placement image in which objects are placed at the correct ratio for the area. For example, the placement processing unit 112 can prevent the generation of an image in which furniture that is too large for the area or other unreasonable aspects is placed.

[0101] As described above, the placement processing unit 112 can generate an object placement image using an image generation model for object placement in which a model having a function of detecting geometric features is incorporated as a machine learning model for control. By using such an image generation model for object placement, the placement processing unit 112 can control the geometric features based on the feature detection image for object placement and maintain the shape of the region.

[0102] As described above, the placement processing unit 112 can generate an object placement image using an image generation model for object placement in which a model having the function of converting an area where an object is not placed into an area where an object is placed is incorporated as a machine learning model for control. By using such an image generation model for object placement, the placement processing unit 112 can more easily place objects.

[0103] As described above, the placement processing unit 112 can generate an object placement image based on the feature detection image for object placement and text data. By using text data, the placement processing unit 112 can generate an object placement image with a high degree of freedom and a wide variety of object placements.

[0104] As described above, the placement processing unit 112 can generate an object placement image based on a feature detection image and a reference image for object placement. By using the reference image, the placement processing unit 112 can easily generate an object placement image in which objects are placed in a way that reflects the preferences of the reference image.

[0105] As described above, the placement processing unit 112 can generate an object placement image based on a feature detection image for object placement and a retention target setting image. The placement processing unit 112 can use the retention target setting image to generate an object placement image that retains the object that is to be left in the placement target image.

[0106] FIG. 5 is a flowchart showing an example of the synthesis process by the server 1.

[0107] The synthesis processing unit 113 acquires an object arrangement image from the image storage area 131 (step S301).

[0108] The synthesis processing unit 113 detects an object in the object arrangement image (step S302). In step S302, the synthesis processing unit 113 detects an object in the object arrangement image using an object detection model. Here, the synthesis processing unit 113 inputs the object arrangement image to the object detection model. The object detection model generates a detection result of the object detected in the object arrangement image based on the object arrangement image, and outputs the detection result. The synthesis processing unit 113 acquires the detection result output from the object detection model. The synthesis processing unit 113 detecting an object in the object arrangement image includes the synthesis processing unit 113 inputting the object arrangement image to the object detection model. The synthesis processing unit 113 detecting an object in the object arrangement image includes the synthesis processing unit 113 acquiring the detection result output from the object detection model.

[0109] The synthesis processing unit 113 generates a synthesis target setting image based on the object detection in the object arrangement image (step S303). In step S303, for example, the synthesis processing unit 113 draws a mask on one or more synthesis target objects in the object arrangement image based on the detection result in the object arrangement image. The synthesis processing unit 113 generates a synthesis target setting image based on the drawing of the mask.

[0110] The compositing processing unit 113 generates a composite image based on the arrangement target image and the compositing target setting image (step S304). In step S304, for example, the compositing processing unit 113 composites the arrangement target image with the compositing target object having a mask drawn in the compositing target setting image. The compositing processing unit 113 generates a composite image based on the composition. The compositing processing unit 113 stores the composite image in the image storage area 131.

[0111] The synthesis processing unit 113 generates an edge detection image based on edge detection in the synthetic image (step S305). In step S305, for example, the synthesis processing unit 113 generates an edge detection image using an edge detection model. Here, the synthesis processing unit 113 inputs the synthetic image to the edge detection model. The edge detection model generates an edge detection image based on the synthetic image and outputs the edge detection image. The synthesis processing unit 113 acquires the edge detection image output from the edge detection model. The synthesis processing unit 113 generating the edge detection image includes the synthesis processing unit 113 inputting the synthetic image to the edge detection model. The synthesis processing unit 113 generating the edge detection image includes the acquisition of the edge detection image output from the edge detection model.

[0112] The synthesis processing unit 113 detects an object in the synthetic image (step S306). In step S306, the synthesis processing unit 113 detects an object in the synthetic image using an object detection model. Here, the synthesis processing unit 113 inputs the synthetic image to the object detection model. The object detection model generates a detection result of the object detected in the synthetic image based on the synthetic image, and outputs the detection result. The synthesis processing unit 113 acquires the detection result output from the object detection model. The synthesis processing unit 113 detecting an object in the synthetic image includes the synthesis processing unit 113 inputting the synthetic image to the object detection model. The synthesis processing unit 113 detecting an object in the synthetic image includes the synthesis processing unit 113 acquiring the detection result output from the object detection model. The synthesis processing unit 113 generates an outer edge set image based on the object detection in the synthetic image (step S307). In step S307, for example, the synthesis processing unit 113 draws a mask on the object synthesized in the synthetic image based on the detection result in the synthetic image. The synthesis processing unit 113 generates an outer edge set image based on the drawing of the mask.

[0113] The synthesis processing unit 113 generates a blended image based on the edge detection image and the outer boundary setting image (step S308). In step S308, for example, the synthesis processing unit 113 generates a blended image using an image generation model for synthesis. Here, the synthesis processing unit 113 inputs the edge detection image and the outer boundary setting image to the image generation model for synthesis. The image generation model for synthesis refers to the edge detection image, generates a blended image based on the outer boundary setting image, and outputs the blended image. For example, the image generation model for synthesis inpaints the outer boundary part of the object in which the mask is drawn in the outer boundary setting image to generate a blended image. As described above, the image generation model for synthesis incorporates a machine learning model for fine tuning that is better at object placement. The machine learning model for fine tuning is generated by machine learning an image in which an object of the correct size is placed in the area. Therefore, the image generation model for synthesis can generate a blended image in which an object of the correct ratio is placed in the area by using the machine learning model for fine tuning. As described above, the image generation model for synthesis incorporates a model having an edge detection function as a machine learning model for control. By using this machine learning model for control, the image generation model for synthesis can control edges by the edge detection image and maintain the shape of the object. As described above, the image generation model for synthesis incorporates a model having a function of converting an area where an object is not placed into an area where an object is placed as a machine learning model for control. By using this machine learning model for control, the image generation model for synthesis becomes easier to place an object. The synthesis processing unit 113 acquires a blending image output from the image generation model for synthesis. The generation of the blending image by the synthesis processing unit 113 includes the input of the edge detection image and the outer edge setting image to the image generation model for synthesis by the synthesis processing unit 113. The generation of the blending image by the synthesis processing unit 113 includes the acquisition of the blending image output from the image generation model for synthesis by the synthesis processing unit 113. The synthesis processing unit 113 saves the blending image in the image storage area 131.

[0114] As described above, the synthesis processing unit 113 can generate a synthesis image based on the layout target image and the synthesis target setting image. Through this type of processing, the synthesis processing unit 113 can place objects that are not placed in the image to be placed, while generating a synthetic image that retains the colors and patterns of the floor, walls, ceiling, etc. that are placed in the image to be placed, the detailed shapes of windows, etc., and other equipment that should not be erased.

[0115] As described above, the synthesis processing unit 113 can generate a blended image based on the edge-detected image and the outer-border-set image. By using the edge-detected image, the synthesis processing unit 113 can generate a blended image in which the boundaries are blended while maintaining the shape of the object represented by the edge-detected image.

[0116] As described above, the synthesis processing unit 113 can generate a blended image by using an image generation model for synthesis incorporating a machine learning model for fine tuning that is better suited to object placement. By using such an image generation model for synthesis, the synthesis processing unit 113 can generate a blended image in which an object is arranged at the correct ratio relative to the area.

[0117] As described above, the synthesis processing unit 113 can generate a blended image by using an image generation model for synthesis in which a model having an edge detection function is incorporated as a machine learning model for control. By using such an image generation model for synthesis, the synthesis processing unit 113 can control edges based on the edge detection image and maintain the shape of the object.

[0118] As described above, the synthesis processing unit 113 can generate a blended image using an image generation model for synthesis in which a model having the function of converting an area where an object is not placed into an area where an object is placed is incorporated as a machine learning model for control. By using such an image generation model for synthesis, the synthesis processing unit 113 can more easily place an object.

[0119] (Example image) An example of an image displayed on the display device of terminal 2 will be described.

[0120] FIG. 6 is a diagram showing an example of an image to be erased. The image to be erased is a photographic image showing an area in which objects such as furniture are placed.

[0121] FIG. 7 is a diagram showing an example of the erasure target setting image. In the erasure target setting image, a mask is drawn on one or more objects to be erased.

[0122] FIG. 8 is a diagram showing an example of an object-erased image. In the object-erased image, the object to be erased has been erased. Here, the object-erased image corresponds to the arrangement target image.

[0123] FIG. 9 is a diagram showing an example of a feature detection image for object placement. The feature detection image for object placement shows straight lines detected from the placement target image.

[0124] Although the feature detection image for object erasure is not shown, the feature detection image for object erasure is an image that shows straight lines detected from the object erasure image, similar to the feature detection image for object placement.

[0125] FIG. 10 is a diagram showing an example of a reference image. The reference image is an image that represents an area in which objects, such as furniture, that are different from those in the image to be erased are placed.

[0126] FIG. 11 is a diagram showing an example of a retention target setting image. In the retention target setting image, a mask is drawn on one or more objects to be retained.

[0127] FIG. 12 is a diagram showing an example of an object arrangement image. In the object arrangement image, one or more objects, such as a sofa, that are not arranged in the arrangement target image are arranged.

[0128] FIG. 13 is a diagram showing an example of a synthesis target image. In the synthesis target image, a mask is drawn on one or more synthesis target objects. The object with the mask drawn is an object such as a sofa that is newly placed in the object placement image.

[0129] FIG. 14 is a diagram showing an example of a composite image. The compositing target is an image obtained by compositing a compositing target object with a placement target image. Therefore, in the composite image, objects other than the compositing target object, such as lighting fixtures, floors, and windows, are the same as those in the placement target image.

[0130] FIG. 15 is a diagram showing an example of an edge-detected image. The edge detection image shows the edges detected from the composite image.

[0131] FIG. 16 is a diagram showing an example of an outer boundary setting image. In the boundary setting image, a mask is drawn around the boundary of one or more objects, such as a sofa, that are combined with the layout target image to generate a composite image.

[0132] FIG. 17 is a diagram showing an example of a blended image. In the blended image, the colors of the boundaries between one or more objects, such as a sofa, which are blended into the placement target image to generate the composite image, and other objects are blended in to a natural state.

[0133] According to the embodiment, the server 1 can easily generate a new image in which the objects placed in the image to be erased are erased while maintaining the shape of the area represented by the image to be erased, such as the object-erased image. According to the embodiment, the server 1 can generate a new image, such as an object placement image, a composite image, or a blended image, in which an object suitable for the area is placed while preserving the shape of the area represented by the target image for placement.

[0134] [Other embodiments] In the above embodiment, an example has been described in which the auxiliary storage device 13 of the server 1 stores each image, but this is not limiting. A server different from the server 1 may store each image instead of the server 1. A plurality of servers different from the server 1 may store each image in a distributed manner instead of the server 1.

[0135] In the above embodiment, an example has been described in which the auxiliary storage device 13 of the server 1 stores each machine learning model, but this is not limiting. A server different from the server 1 may store each machine learning model instead of the server 1. A plurality of servers different from the server 1 may store each machine learning model in a distributed manner instead of the server 1.

[0136] Although the image processing device has been described using the server 1 as an example, the image processing device is not limited to this. The image processing device may be realized by a device having the same functions as the server 1. The device may be a terminal such as a PC (Personal Computer), a smartphone, or a tablet terminal.

[0137] The image processing device may be realized by one device such as the server 1 described in the above embodiment, or may be realized by a plurality of devices with distributed functions.

[0138] The above-described embodiments may be applied not only to the device but also to a method executed by the device. The above-described embodiments may be applied to a program capable of causing the computer of the device to execute each function. The program capable of causing the computer of the device to execute each function is a program capable of causing the computer of the device to execute the processing of each unit of the device. The above-described embodiments may be applied to a recording medium that stores the program.

[0139] Each of the one or more circuits constituting the processing circuit executes one or more processes among the multiple processes. When the processing circuit is composed of a single circuit, the single circuit executes all of the multiple processes. When the processing circuit is composed of multiple circuits, each of the multiple circuits executes a part of the multiple processes. The part of the multiple processes may be one of the multiple processes, or two or more of the multiple processes. When the processing circuit is composed of multiple circuits, the multiple circuits may be included in one device, or may be distributed across multiple devices.

[0140] The program may be transferred in a state where it is stored in the device according to the embodiment, or in a state where it is not stored in the device. In the latter case, the program may be transferred via a network, or in a state where it is recorded on a recording medium. The recording medium is a non-transitory tangible medium. The recording medium is a computer-readable medium. The recording medium may be in any form, such as a CD-ROM or a memory card, as long as it is capable of storing the program and is readable by a computer.

[0141] In short, this invention is not limited to the present embodiment as it is, and the components can be modified and embodied in the implementation stage without departing from the gist of the invention. In addition, various inventions can be formed by appropriately combining multiple components disclosed in this embodiment. For example, some components may be deleted from all the components shown in this embodiment. Furthermore, components from different embodiments may be appropriately combined.

[0142] Some of the above embodiments may be expressed as follows. [1] A feature detection image for object placement is generated based on geometric feature detection in the placement target image representing an area, the feature detection image for object placement being an image of a target in which an object is to be placed; generating an object arrangement image representing an area in which an object not arranged in the arrangement target image is arranged based on the feature detection image for object arrangement; An image processing device including a placement processing unit. [2] The image processing device according to [1], wherein the placement processing unit generates the object placement image based on a feature detection image for the object placement and text data. [3] The image processing device according to [1], wherein the placement processing unit generates the object placement image based on a feature detection image for object placement and a reference image representing the area in which the object is placed. [4] The placement processing unit: Based on the object detection in the image to be placed, an object to be held is set in the image to be placed; generating the object placement image based on the feature detection image for object placement and the setting of the object to be held; The area represented by the object arrangement image is an area in which the object to be held is arranged. [1] An image processing device according to the present invention. [5] setting an object to be synthesized in the object arrangement image based on the object detection in the object arrangement image; generating a composite image by combining the object to be combined with the image to be placed based on settings of the image to be placed and the object to be combined; The image processing device according to [1], further comprising a synthesis processing unit. [6] The synthesis processing unit: generating an edge-detected image based on edge detection in the composite image; determining an outer edge of a synthesized object in the synthesized image; generating an image in which the outer edge is blended in the composite image based on the edge detection image and the setting of the outer edge; [5] An image processing device according to the present invention. [7] The placement processing unit generates the object placement image using an image generation model for object placement incorporating a machine learning model for fine tuning generated by machine learning training data including a plurality of images representing an area in which an object is placed. [1] An image processing device according to the present invention. [8] The placement processing unit generates the object placement image using an image generation model for object placement incorporating a machine learning model for control that outputs an image representing an area in which an object is placed based on an input image representing an area in which an object is not placed. [1] An image processing device according to the present invention. [9] An image of a target from which an object is to be erased, the image representing an area in which an object is arranged, based on object detection in the image of a target to be erased, the image of a target to be erased being set; generating an object-erased image by erasing the object to be erased from the image to be erased based on settings of the image to be erased and the object to be erased; An erasure processing unit is further provided, The arrangement target image is an object-erased image generated by the erasure processing unit. An image processing device according to any one of [1] to [8].

[10] The erasure processing unit includes: generating a feature detection image for object removal based on geometric feature detection in the object-removed image; generating a new object-erased image based on the feature detection image for object erasure and the object-erased image from which the feature detection image for object erasure is generated; [9] An image processing device according to the present invention.

[11] The erasure processing unit generates the object-erased image using an image generation model for object erasure incorporating a machine learning model for fine-tuning generated by machine learning training data including a plurality of images representing areas in which no object is placed. [9] An image processing device according to the present invention.

[12] An image of a target from which an object is to be erased, the image representing an area in which an object is arranged, based on object detection in the image of a target to be erased, the image of a target to be erased being set; generating an object-erased image by erasing the object to be erased from the image to be erased based on settings of the image to be erased and the object to be erased; generating a feature detection image for object erasure based on geometric feature detection in the generated object-erased image; generating a new object-erased image based on the feature detection image for object erasure and the object-erased image from which the feature detection image for object erasure is generated; An image processing device comprising an erasing processing unit.

[13] An image processing method executed by an image processing device, comprising: generating a feature detection image for object placement based on geometric feature detection in the placement target image, the feature detection image representing an area, into which the object is to be placed; generating an object arrangement image representing an area in which an object not arranged in the arrangement target image is arranged based on the feature detection image for object arrangement; An image processing method comprising:

[14] An image processing method executed by an image processing device, comprising: setting an object to be erased in an image to be erased based on object detection in the image to be erased, the image representing an area in which the object is located; generating an object-erased image by erasing the object to be erased from the image to be erased based on settings of the image to be erased and the object to be erased; generating a feature detection image for object removal based on geometric feature detection in the generated object-removed image; generating a new object-erased image based on the feature detection image for object erasure and the object-erased image from which the feature detection image for object erasure is generated; An image processing method comprising:

[15] An image processing program capable of causing a computer to execute the processing of each part of the image processing device described in any one of [1] to

[12] . [Explanation of symbols]

[0143] 1...server, 2...terminal, 11...processing circuit, 12...main memory, 13...auxiliary storage device, 14...communication interface, 111...erasure processing unit, 112...placement processing unit, 113...composition processing unit, 131...image memory area, 132...machine learning model memory area, S...image processing system.

Claims

1. generating a feature detection image for object placement, the feature detection image being an image drawn on a two-dimensional plane based on geometric feature detection in the placement target image representing an area, the feature detection image indicating the detected line segments; generating an object placement image representing an area in which an object not placed in the placement target image is placed, using an image generation model for object placement based on the feature detection image for object placement; A placement processing unit is provided, The image processing device incorporates a machine learning model in which the image generation model for object placement is an image that outputs an image representing an area where an object is placed based on an input image that represents an area where an object is not placed, and a machine learning model that, when a feature detection image for object placement is input, makes it easier to generate an image representing an area that retains the line segments.

2. The image processing device according to claim 1 , wherein the placement processing unit generates the object placement image based on a feature detection image for object placement and text data.

3. The image processing device according to claim 1 , wherein the placement processing unit generates the object placement image based on a feature detection image for object placement and a reference image representing an area in which the object is placed.

4. The placement processing unit: Based on the object detection in the image to be placed, an object to be held is set in the image to be placed; generating the object placement image based on the feature detection image for object placement and the setting of the object to be held; The image processing device according to claim 1 , wherein the area represented by the object arrangement image is an area in which the object to be held is arranged.

5. Based on the object detection in the object arrangement image, an object to be synthesized is set in the object arrangement image; generating a composite image by combining the object to be combined with the image to be placed based on settings of the image to be placed and the object to be combined; The image processing device according to claim 1 , further comprising a synthesis processing unit.

6. The synthesis processing unit includes: generating an edge-detected image based on edge detection in the composite image; determining an outer edge of a synthesized object in the synthesized image; generating an image in which the outer edge is blended in the composite image based on the edge detection image and the setting of the outer edge; The image processing device according to claim 5 .

7. an image of a target from which an object is to be erased, the image representing an area in which an object is arranged, based on object detection in the image of a target to be erased; generating an object-erased image by erasing the object to be erased from the image to be erased based on settings of the image to be erased and the object to be erased; An erasure processing unit is further provided, The arrangement target image is an object-erased image generated by the erasure processing unit. The image processing device according to claim 1 .

8. The erasure processing unit includes: generating a feature detection image for object erasure based on geometric feature detection in the generated object-erased image; generating a new object-erased image based on the feature detection image for object erasure and the object-erased image from which the feature detection image for object erasure is generated; The image processing device according to claim 7.

9. The erasure processing unit generates the object-erased image using an image generation model for object erasure incorporating a machine learning model for fine-tuning generated by machine learning learning data including a plurality of images representing an area in which no object is placed. The image processing device according to claim 7.

10. An image processing method executed by an image processing device, comprising: generating an image of a target in which an object is to be placed, the image being drawn on a two-dimensional plane based on detection of geometric features in the placement target image representing an area, the feature detection image for object placement indicating the detected line segments; generating an object placement image representing an area in which an object not placed in the placement target image is placed, using an image generation model for object placement based on the feature detection image for object placement; Equipped with The image processing method incorporates a machine learning model, wherein the image generation model for object placement incorporates a machine learning model that outputs an image representing an area where an object is placed based on an input image representing an area where no object is placed, and a machine learning model that, when a feature detection image for object placement is input, is more likely to generate an image representing an area that retains the line segments.

11. An image processing program capable of causing a computer to execute processing of each unit included in the image processing device according to any one of claims 1 to 9.

Citation Information

Patent Citations

  • Method for specifying coordinate axis in three dimensional space and method for specifying plane

    JP2021051660A

  • Image processing system, image processing method and program

    JP2021149679A

  • Display device, method, and program

    WO2020054203A1

Cited By

  • Information processing device, information processing method, and information processing program

    WO2026053900A1